mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
28 lines
542 B
QML
28 lines
542 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import qs.Commons
|
|
import qs.Widgets
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
// Public properties
|
|
property int currentIndex: 0
|
|
property int spacing: Style.marginS
|
|
default property alias content: tabRow.children
|
|
|
|
// Styling
|
|
Layout.fillWidth: true
|
|
implicitHeight: Style.baseWidgetSize + Style.marginXS * 2
|
|
color: Color.mSurfaceVariant
|
|
radius: Style.radiusS
|
|
|
|
RowLayout {
|
|
id: tabRow
|
|
anchors.fill: parent
|
|
anchors.margins: Style.marginXS
|
|
spacing: root.spacing
|
|
}
|
|
}
|