diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-16 19:36:05 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-16 19:36:05 -0500 |
| commit | 8981ab8806609496360d11cf34384fc337368ff7 (patch) | |
| tree | 4c0343bc034923f59993c4ace7a111b58fe588dd /modules/controlcenter/taskbar/TaskbarPane.qml | |
| parent | controlcenter: removed accordion auto-close on sections (diff) | |
| download | caelestia-shell-8981ab8806609496360d11cf34384fc337368ff7.tar.gz caelestia-shell-8981ab8806609496360d11cf34384fc337368ff7.tar.bz2 caelestia-shell-8981ab8806609496360d11cf34384fc337368ff7.zip | |
controlcenter: added collapse/expand all to apperaance and taskbar
Diffstat (limited to 'modules/controlcenter/taskbar/TaskbarPane.qml')
| -rw-r--r-- | modules/controlcenter/taskbar/TaskbarPane.qml | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/modules/controlcenter/taskbar/TaskbarPane.qml b/modules/controlcenter/taskbar/TaskbarPane.qml index 8d0e5a0..c731acc 100644 --- a/modules/controlcenter/taskbar/TaskbarPane.qml +++ b/modules/controlcenter/taskbar/TaskbarPane.qml @@ -175,19 +175,40 @@ RowLayout { spacing: Appearance.spacing.small + readonly property bool allSectionsExpanded: + clockSection.expanded && + barBehaviorSection.expanded && + statusIconsSection.expanded && + traySettingsSection.expanded && + workspacesSection.expanded + RowLayout { - spacing: Appearance.spacing.smaller + spacing: Appearance.spacing.smaller - StyledText { - text: qsTr("Settings") - font.pointSize: Appearance.font.size.large - font.weight: 500 - } + StyledText { + text: qsTr("Settings") + font.pointSize: Appearance.font.size.large + font.weight: 500 + } - Item { - Layout.fillWidth: true - } - } + Item { + Layout.fillWidth: true + } + + IconButton { + icon: sidebarLayout.allSectionsExpanded ? "unfold_less" : "unfold_more" + type: IconButton.Text + label.animate: true + onClicked: { + const shouldExpand = !sidebarLayout.allSectionsExpanded; + clockSection.expanded = shouldExpand; + barBehaviorSection.expanded = shouldExpand; + statusIconsSection.expanded = shouldExpand; + traySettingsSection.expanded = shouldExpand; + workspacesSection.expanded = shouldExpand; + } + } + } CollapsibleSection { id: clockSection |