mirror of
https://github.com/tuxdotrs/tshell.git
synced 2026-09-19 18:49:02 +05:30
refactor(config): reorganize bar layout widgets
This commit is contained in:
@@ -14,11 +14,12 @@ Singleton {
|
|||||||
property var left: [
|
property var left: [
|
||||||
root.widget("LauncherButton"),
|
root.widget("LauncherButton"),
|
||||||
root.widget("BatteryIndicator"),
|
root.widget("BatteryIndicator"),
|
||||||
root.widget("CavaVisualizer")
|
|
||||||
]
|
]
|
||||||
|
|
||||||
property var center: [
|
property var center: [
|
||||||
root.widget("Workspaces")
|
root.widget("CavaVisualizer"),
|
||||||
|
root.widget("Workspaces"),
|
||||||
|
root.widget("CavaVisualizer"),
|
||||||
]
|
]
|
||||||
|
|
||||||
property var right: [
|
property var right: [
|
||||||
|
|||||||
@@ -36,9 +36,11 @@ PanelWindow {
|
|||||||
implicitHeight: parent.height
|
implicitHeight: parent.height
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Row {
|
RowLayout {
|
||||||
|
id: secRow
|
||||||
|
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
x: section.alignment === Qt.AlignLeft ? 0 : section.alignment === Qt.AlignRight ? parent.width - width : (parent.width - width) / 2
|
x: section.alignment === Qt.AlignLeft ? 0 : section.alignment === Qt.AlignRight ? parent.width - width : (parent.width - width) / 2
|
||||||
y: (section.height - height) / 2
|
|
||||||
spacing: Appearance.spacing
|
spacing: Appearance.spacing
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
@@ -48,6 +50,7 @@ PanelWindow {
|
|||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
source: modelData
|
source: modelData
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user