summaryrefslogtreecommitdiff
path: root/components/controls
diff options
context:
space:
mode:
Diffstat (limited to 'components/controls')
-rw-r--r--components/controls/CollapsibleSection.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/controls/CollapsibleSection.qml b/components/controls/CollapsibleSection.qml
index 078145b..8940884 100644
--- a/components/controls/CollapsibleSection.qml
+++ b/components/controls/CollapsibleSection.qml
@@ -13,6 +13,7 @@ ColumnLayout {
property string description: ""
property bool expanded: false
property bool showBackground: false
+ property bool nested: false
signal toggleRequested
@@ -87,7 +88,9 @@ ColumnLayout {
id: backgroundRect
anchors.fill: parent
radius: Appearance.rounding.normal
- color: Colours.layer(Colours.palette.m3surfaceContainer, 2)
+ color: Colours.transparency.enabled
+ ? Colours.layer(Colours.palette.m3surfaceContainer, root.nested ? 3 : 2)
+ : (root.nested ? Colours.palette.m3surfaceContainerHigh : Colours.palette.m3surfaceContainer)
opacity: root.showBackground && root.expanded ? 1.0 : 0.0
visible: root.showBackground