diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-13 22:16:47 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-13 22:16:47 -0500 |
| commit | 78d032e9462b6678691747bfacc21032ee2e5685 (patch) | |
| tree | afdb4ba79c4c7db51ba95eae086823238d0188ee /components/StateLayer.qml | |
| parent | tray: wireless, ethernet, bluetooth cleanup (diff) | |
| download | caelestia-shell-78d032e9462b6678691747bfacc21032ee2e5685.tar.gz caelestia-shell-78d032e9462b6678691747bfacc21032ee2e5685.tar.bz2 caelestia-shell-78d032e9462b6678691747bfacc21032ee2e5685.zip | |
controlcenter: collapsiblegroups animation and styling tweaked
Diffstat (limited to 'components/StateLayer.qml')
| -rw-r--r-- | components/StateLayer.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/StateLayer.qml b/components/StateLayer.qml index d86e782..a20e266 100644 --- a/components/StateLayer.qml +++ b/components/StateLayer.qml @@ -6,6 +6,7 @@ MouseArea { id: root property bool disabled + property bool showHoverBackground: true property color color: Colours.palette.m3onSurface property real radius: parent?.radius ?? 0 property alias rect: hoverLayer @@ -75,7 +76,7 @@ MouseArea { anchors.fill: parent - color: Qt.alpha(root.color, root.disabled ? 0 : root.pressed ? 0.1 : root.containsMouse ? 0.08 : 0) + color: Qt.alpha(root.color, root.disabled ? 0 : root.pressed ? 0.12 : (root.showHoverBackground && root.containsMouse) ? 0.08 : 0) radius: root.radius StyledRect { |