diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-19 08:01:48 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-19 08:01:48 -0500 |
| commit | 50e29f8be35cb773b5bf25a494eddfe665073583 (patch) | |
| tree | 0e730d11f0c9bf18c32128bfde5a7414e5cb59fc /components | |
| parent | controlcenter: minor moving around elements in taskbar panel (diff) | |
| download | caelestia-shell-50e29f8be35cb773b5bf25a494eddfe665073583.tar.gz caelestia-shell-50e29f8be35cb773b5bf25a494eddfe665073583.tar.bz2 caelestia-shell-50e29f8be35cb773b5bf25a494eddfe665073583.zip | |
controlcenter: corrected nesting of bg when transparency off
Diffstat (limited to 'components')
| -rw-r--r-- | components/SectionContainer.qml | 4 | ||||
| -rw-r--r-- | components/controls/CollapsibleSection.qml | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/components/SectionContainer.qml b/components/SectionContainer.qml index 60e3d59..f133e19 100644 --- a/components/SectionContainer.qml +++ b/components/SectionContainer.qml @@ -16,7 +16,9 @@ StyledRect { implicitHeight: contentColumn.implicitHeight + Appearance.padding.large * 2 radius: Appearance.rounding.normal - color: Colours.layer(Colours.palette.m3surfaceContainer, 2) + color: Colours.transparency.enabled + ? Colours.layer(Colours.palette.m3surfaceContainer, 2) + : Colours.palette.m3surfaceContainerHigh ColumnLayout { id: contentColumn 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 |