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/appearance/AppearancePane.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/appearance/AppearancePane.qml')
| -rw-r--r-- | modules/controlcenter/appearance/AppearancePane.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/controlcenter/appearance/AppearancePane.qml b/modules/controlcenter/appearance/AppearancePane.qml index 5f70abb..2b3bbce 100644 --- a/modules/controlcenter/appearance/AppearancePane.qml +++ b/modules/controlcenter/appearance/AppearancePane.qml @@ -141,6 +141,17 @@ RowLayout { anchors.right: parent.right spacing: Appearance.spacing.small + readonly property bool allSectionsExpanded: + themeModeSection.expanded && + colorVariantSection.expanded && + colorSchemeSection.expanded && + animationsSection.expanded && + fontsSection.expanded && + scalesSection.expanded && + transparencySection.expanded && + borderSection.expanded && + backgroundSection.expanded + RowLayout { spacing: Appearance.spacing.smaller @@ -153,6 +164,24 @@ RowLayout { Item { Layout.fillWidth: true } + + IconButton { + icon: sidebarLayout.allSectionsExpanded ? "unfold_less" : "unfold_more" + type: IconButton.Text + label.animate: true + onClicked: { + const shouldExpand = !sidebarLayout.allSectionsExpanded; + themeModeSection.expanded = shouldExpand; + colorVariantSection.expanded = shouldExpand; + colorSchemeSection.expanded = shouldExpand; + animationsSection.expanded = shouldExpand; + fontsSection.expanded = shouldExpand; + scalesSection.expanded = shouldExpand; + transparencySection.expanded = shouldExpand; + borderSection.expanded = shouldExpand; + backgroundSection.expanded = shouldExpand; + } + } } CollapsibleSection { |