diff options
Diffstat (limited to 'modules/controlcenter')
| -rw-r--r-- | modules/controlcenter/appearance/AppearancePane.qml | 29 | ||||
| -rw-r--r-- | modules/controlcenter/taskbar/TaskbarPane.qml | 41 |
2 files changed, 60 insertions, 10 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 { 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 |