diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-17 13:55:52 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-17 13:55:52 -0500 |
| commit | ba094963bc62a50e41b444217535218b320b83d0 (patch) | |
| tree | 51a6628e7645cd7736efd4e4447b7be5623d8b6b /components | |
| parent | controlcenter: disable resize on floating window (diff) | |
| download | caelestia-shell-ba094963bc62a50e41b444217535218b320b83d0.tar.gz caelestia-shell-ba094963bc62a50e41b444217535218b320b83d0.tar.bz2 caelestia-shell-ba094963bc62a50e41b444217535218b320b83d0.zip | |
controlcenter: added slight background to expanded collapsiblesections on appearance
Diffstat (limited to 'components')
| -rw-r--r-- | components/controls/CollapsibleSection.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/components/controls/CollapsibleSection.qml b/components/controls/CollapsibleSection.qml index 35acdec..a1f038b 100644 --- a/components/controls/CollapsibleSection.qml +++ b/components/controls/CollapsibleSection.qml @@ -12,6 +12,7 @@ ColumnLayout { required property string title property string description: "" property bool expanded: false + property bool showBackground: false signal toggleRequested @@ -82,6 +83,21 @@ ColumnLayout { } } + StyledRect { + id: backgroundRect + anchors.fill: parent + radius: Appearance.rounding.normal + color: Colours.layer(Colours.palette.m3surfaceContainer, 2) + opacity: root.showBackground && root.expanded ? 1.0 : 0.0 + visible: root.showBackground + + Behavior on opacity { + Anim { + easing.bezierCurve: Appearance.anim.curves.standard + } + } + } + ColumnLayout { id: contentColumn anchors.left: parent.left |