summaryrefslogtreecommitdiff
path: root/components/controls/StyledSwitch.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-08 19:32:38 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-08 19:32:38 +1000
commit5b8edfc1e29433b40bb1120043bc1b79010a6cc1 (patch)
tree99476b16b36a299b82e8497be9338d6cc760ef8c /components/controls/StyledSwitch.qml
parentcontrolcenter: hide float button when floating (diff)
downloadcaelestia-shell-5b8edfc1e29433b40bb1120043bc1b79010a6cc1.tar.gz
caelestia-shell-5b8edfc1e29433b40bb1120043bc1b79010a6cc1.tar.bz2
caelestia-shell-5b8edfc1e29433b40bb1120043bc1b79010a6cc1.zip
internal: transparency support coming soon™
Also fix media player selector text colour Fix colour preview not resetting light/dark mode
Diffstat (limited to 'components/controls/StyledSwitch.qml')
-rw-r--r--components/controls/StyledSwitch.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/controls/StyledSwitch.qml b/components/controls/StyledSwitch.qml
index c9d7330..e90ced2 100644
--- a/components/controls/StyledSwitch.qml
+++ b/components/controls/StyledSwitch.qml
@@ -8,12 +8,14 @@ import QtQuick.Shapes
Switch {
id: root
+ property int cLayer: 1
+
implicitWidth: implicitIndicatorWidth
implicitHeight: implicitIndicatorHeight
indicator: StyledRect {
radius: Appearance.rounding.full
- color: root.checked ? Colours.palette.m3primary : Colours.palette.m3surfaceContainerHighest
+ color: root.checked ? Colours.palette.m3primary : Colours.layer(Colours.palette.m3surfaceContainerHighest, root.cLayer)
implicitWidth: implicitHeight * 1.7
implicitHeight: Appearance.font.size.normal + Appearance.padding.smaller * 2