summaryrefslogtreecommitdiff
path: root/modules/controlcenter/taskbar/TaskbarPane.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-17 10:23:32 -0500
committerATMDA <atdma2600@gmail.com>2025-11-17 10:23:32 -0500
commit3f3f3a7d788ac555a94446731749e7b3aa9319c6 (patch)
tree1707940e74f9a8963ecbc7f1c1c5ccbccf0e8800 /modules/controlcenter/taskbar/TaskbarPane.qml
parentcontrolcenter: converted taskbar panel to single pane view (diff)
downloadcaelestia-shell-3f3f3a7d788ac555a94446731749e7b3aa9319c6.tar.gz
caelestia-shell-3f3f3a7d788ac555a94446731749e7b3aa9319c6.tar.bz2
caelestia-shell-3f3f3a7d788ac555a94446731749e7b3aa9319c6.zip
controlcenter: connected button group component
Diffstat (limited to 'modules/controlcenter/taskbar/TaskbarPane.qml')
-rw-r--r--modules/controlcenter/taskbar/TaskbarPane.qml122
1 files changed, 61 insertions, 61 deletions
diff --git a/modules/controlcenter/taskbar/TaskbarPane.qml b/modules/controlcenter/taskbar/TaskbarPane.qml
index 1ad35b6..d7cc664 100644
--- a/modules/controlcenter/taskbar/TaskbarPane.qml
+++ b/modules/controlcenter/taskbar/TaskbarPane.qml
@@ -336,67 +336,67 @@ Item {
id: statusIconsSection
title: qsTr("Status Icons")
- SwitchRow {
- label: qsTr("Show audio")
- checked: root.showAudio
- onToggled: checked => {
- root.showAudio = checked;
- root.saveConfig();
- }
- }
-
- SwitchRow {
- label: qsTr("Show microphone")
- checked: root.showMicrophone
- onToggled: checked => {
- root.showMicrophone = checked;
- root.saveConfig();
- }
- }
-
- SwitchRow {
- label: qsTr("Show keyboard layout")
- checked: root.showKbLayout
- onToggled: checked => {
- root.showKbLayout = checked;
- root.saveConfig();
- }
- }
-
- SwitchRow {
- label: qsTr("Show network")
- checked: root.showNetwork
- onToggled: checked => {
- root.showNetwork = checked;
- root.saveConfig();
- }
- }
-
- SwitchRow {
- label: qsTr("Show bluetooth")
- checked: root.showBluetooth
- onToggled: checked => {
- root.showBluetooth = checked;
- root.saveConfig();
- }
- }
-
- SwitchRow {
- label: qsTr("Show battery")
- checked: root.showBattery
- onToggled: checked => {
- root.showBattery = checked;
- root.saveConfig();
- }
- }
-
- SwitchRow {
- label: qsTr("Show lock status")
- checked: root.showLockStatus
- onToggled: checked => {
- root.showLockStatus = checked;
- root.saveConfig();
- }
+ 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();
+ }
+ }
+ ]
}
}