controlcenter: removed accordion auto-close on sections
This commit is contained in:
parent
d0c51d4c51
commit
07637da8f6
1 changed files with 0 additions and 47 deletions
|
|
@ -130,26 +130,6 @@ RowLayout {
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
contentHeight: sidebarLayout.height
|
contentHeight: sidebarLayout.height
|
||||||
|
|
||||||
function collapseAllSections(exceptSection) {
|
|
||||||
if (exceptSection !== themeModeSection)
|
|
||||||
themeModeSection.expanded = false;
|
|
||||||
if (exceptSection !== colorVariantSection)
|
|
||||||
colorVariantSection.expanded = false;
|
|
||||||
if (exceptSection !== colorSchemeSection)
|
|
||||||
colorSchemeSection.expanded = false;
|
|
||||||
if (exceptSection !== animationsSection)
|
|
||||||
animationsSection.expanded = false;
|
|
||||||
if (exceptSection !== fontsSection)
|
|
||||||
fontsSection.expanded = false;
|
|
||||||
if (exceptSection !== scalesSection)
|
|
||||||
scalesSection.expanded = false;
|
|
||||||
if (exceptSection !== transparencySection)
|
|
||||||
transparencySection.expanded = false;
|
|
||||||
if (exceptSection !== borderSection)
|
|
||||||
borderSection.expanded = false;
|
|
||||||
if (exceptSection !== backgroundSection)
|
|
||||||
backgroundSection.expanded = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
StyledScrollBar.vertical: StyledScrollBar {
|
StyledScrollBar.vertical: StyledScrollBar {
|
||||||
flickable: sidebarFlickable
|
flickable: sidebarFlickable
|
||||||
|
|
@ -179,9 +159,6 @@ RowLayout {
|
||||||
id: themeModeSection
|
id: themeModeSection
|
||||||
title: qsTr("Theme mode")
|
title: qsTr("Theme mode")
|
||||||
description: qsTr("Light or dark theme")
|
description: qsTr("Light or dark theme")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(themeModeSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
label: qsTr("Dark mode")
|
label: qsTr("Dark mode")
|
||||||
|
|
@ -196,9 +173,6 @@ RowLayout {
|
||||||
id: colorVariantSection
|
id: colorVariantSection
|
||||||
title: qsTr("Color variant")
|
title: qsTr("Color variant")
|
||||||
description: qsTr("Material theme variant")
|
description: qsTr("Material theme variant")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(colorVariantSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -282,9 +256,6 @@ RowLayout {
|
||||||
id: colorSchemeSection
|
id: colorSchemeSection
|
||||||
title: qsTr("Color scheme")
|
title: qsTr("Color scheme")
|
||||||
description: qsTr("Available color schemes")
|
description: qsTr("Available color schemes")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(colorSchemeSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -422,9 +393,6 @@ RowLayout {
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: animationsSection
|
id: animationsSection
|
||||||
title: qsTr("Animations")
|
title: qsTr("Animations")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(animationsSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionContainer {
|
SectionContainer {
|
||||||
contentSpacing: Appearance.spacing.normal
|
contentSpacing: Appearance.spacing.normal
|
||||||
|
|
@ -529,9 +497,6 @@ RowLayout {
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: fontsSection
|
id: fontsSection
|
||||||
title: qsTr("Fonts")
|
title: qsTr("Fonts")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(fontsSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: materialFontSection
|
id: materialFontSection
|
||||||
|
|
@ -861,9 +826,6 @@ RowLayout {
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: scalesSection
|
id: scalesSection
|
||||||
title: qsTr("Scales")
|
title: qsTr("Scales")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(scalesSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionContainer {
|
SectionContainer {
|
||||||
contentSpacing: Appearance.spacing.normal
|
contentSpacing: Appearance.spacing.normal
|
||||||
|
|
@ -1166,9 +1128,6 @@ RowLayout {
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: transparencySection
|
id: transparencySection
|
||||||
title: qsTr("Transparency")
|
title: qsTr("Transparency")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(transparencySection);
|
|
||||||
}
|
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
label: qsTr("Transparency enabled")
|
label: qsTr("Transparency enabled")
|
||||||
|
|
@ -1381,9 +1340,6 @@ RowLayout {
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: borderSection
|
id: borderSection
|
||||||
title: qsTr("Border")
|
title: qsTr("Border")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(borderSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionContainer {
|
SectionContainer {
|
||||||
contentSpacing: Appearance.spacing.normal
|
contentSpacing: Appearance.spacing.normal
|
||||||
|
|
@ -1575,9 +1531,6 @@ RowLayout {
|
||||||
CollapsibleSection {
|
CollapsibleSection {
|
||||||
id: backgroundSection
|
id: backgroundSection
|
||||||
title: qsTr("Background")
|
title: qsTr("Background")
|
||||||
onToggleRequested: {
|
|
||||||
sidebarFlickable.collapseAllSections(backgroundSection);
|
|
||||||
}
|
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
label: qsTr("Desktop clock")
|
label: qsTr("Desktop clock")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue