summaryrefslogtreecommitdiff
path: root/components/StateLayer.qml
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-13 22:16:47 -0500
committerATMDA <atdma2600@gmail.com>2025-11-13 22:16:47 -0500
commit78d032e9462b6678691747bfacc21032ee2e5685 (patch)
treeafdb4ba79c4c7db51ba95eae086823238d0188ee /components/StateLayer.qml
parenttray: wireless, ethernet, bluetooth cleanup (diff)
downloadcaelestia-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.qml3
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 {