diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-17 10:36:17 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-17 10:36:17 -0500 |
| commit | 388cb0e373b1615b6d90028d74094c222fa48460 (patch) | |
| tree | 3da8567873719303ccd5bbfb1736e042d1c37c16 /modules/controlcenter/taskbar/TaskbarPane.qml | |
| parent | controlcenter: connected button group component (diff) | |
| download | caelestia-shell-388cb0e373b1615b6d90028d74094c222fa48460.tar.gz caelestia-shell-388cb0e373b1615b6d90028d74094c222fa48460.tar.bz2 caelestia-shell-388cb0e373b1615b6d90028d74094c222fa48460.zip | |
controlcenter: refined connected button groups
Diffstat (limited to 'modules/controlcenter/taskbar/TaskbarPane.qml')
| -rw-r--r-- | modules/controlcenter/taskbar/TaskbarPane.qml | 134 |
1 files changed, 64 insertions, 70 deletions
diff --git a/modules/controlcenter/taskbar/TaskbarPane.qml b/modules/controlcenter/taskbar/TaskbarPane.qml index d7cc664..0ec27e5 100644 --- a/modules/controlcenter/taskbar/TaskbarPane.qml +++ b/modules/controlcenter/taskbar/TaskbarPane.qml @@ -164,7 +164,6 @@ Item { readonly property bool allSectionsExpanded: clockSection.expanded && barBehaviorSection.expanded && - statusIconsSection.expanded && traySettingsSection.expanded && workspacesSection.expanded @@ -189,13 +188,76 @@ Item { const shouldExpand = !sidebarLayout.allSectionsExpanded; clockSection.expanded = shouldExpand; barBehaviorSection.expanded = shouldExpand; - statusIconsSection.expanded = shouldExpand; traySettingsSection.expanded = shouldExpand; workspacesSection.expanded = shouldExpand; } } } + ConnectedButtonGroup { + rootItem: root + title: qsTr("Status Icons") + + options: [ + { + label: qsTr("Audio"), + propertyName: "showAudio", + onToggled: function(checked) { + root.showAudio = checked; + root.saveConfig(); + } + }, + { + label: qsTr("Mic"), + propertyName: "showMicrophone", + onToggled: function(checked) { + root.showMicrophone = checked; + root.saveConfig(); + } + }, + { + label: qsTr("KB"), + propertyName: "showKbLayout", + onToggled: function(checked) { + root.showKbLayout = checked; + root.saveConfig(); + } + }, + { + label: qsTr("Network"), + propertyName: "showNetwork", + onToggled: function(checked) { + root.showNetwork = checked; + root.saveConfig(); + } + }, + { + label: qsTr("BT"), + propertyName: "showBluetooth", + onToggled: function(checked) { + root.showBluetooth = checked; + root.saveConfig(); + } + }, + { + label: qsTr("Battery"), + propertyName: "showBattery", + onToggled: function(checked) { + root.showBattery = checked; + root.saveConfig(); + } + }, + { + label: qsTr("Lock"), + propertyName: "showLockStatus", + onToggled: function(checked) { + root.showLockStatus = checked; + root.saveConfig(); + } + } + ] + } + CollapsibleSection { id: clockSection title: qsTr("Clock") @@ -333,74 +395,6 @@ Item { } CollapsibleSection { - id: statusIconsSection - title: qsTr("Status Icons") - - ConnectedButtonGroup { - rootItem: root - - options: [ - { - label: qsTr("Audio"), - propertyName: "showAudio", - onToggled: function(checked) { - root.showAudio = checked; - root.saveConfig(); - } - }, - { - label: qsTr("Mic"), - propertyName: "showMicrophone", - onToggled: function(checked) { - root.showMicrophone = checked; - root.saveConfig(); - } - }, - { - label: qsTr("KB"), - propertyName: "showKbLayout", - onToggled: function(checked) { - root.showKbLayout = checked; - root.saveConfig(); - } - }, - { - label: qsTr("Network"), - propertyName: "showNetwork", - onToggled: function(checked) { - root.showNetwork = checked; - root.saveConfig(); - } - }, - { - label: qsTr("BT"), - propertyName: "showBluetooth", - onToggled: function(checked) { - root.showBluetooth = checked; - root.saveConfig(); - } - }, - { - label: qsTr("Battery"), - propertyName: "showBattery", - onToggled: function(checked) { - root.showBattery = checked; - root.saveConfig(); - } - }, - { - label: qsTr("Lock"), - propertyName: "showLockStatus", - onToggled: function(checked) { - root.showLockStatus = checked; - root.saveConfig(); - } - } - ] - } - } - - CollapsibleSection { id: traySettingsSection title: qsTr("Tray Settings") |