summaryrefslogtreecommitdiff
path: root/widgets/VerticalSlider.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 14:50:18 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 14:50:18 +1000
commit1fdaf24526ae688251307f2756bcdb9d7592e383 (patch)
tree9187b1efd11bfa7d1d2625da29c308a6a51c2842 /widgets/VerticalSlider.qml
parentdev: get rid of wrapper width/height = 0 warnings (diff)
downloadcaelestia-shell-1fdaf24526ae688251307f2756bcdb9d7592e383.tar.gz
caelestia-shell-1fdaf24526ae688251307f2756bcdb9d7592e383.tar.bz2
caelestia-shell-1fdaf24526ae688251307f2756bcdb9d7592e383.zip
refactor: move colours to separate service
Diffstat (limited to 'widgets/VerticalSlider.qml')
-rw-r--r--widgets/VerticalSlider.qml11
1 files changed, 6 insertions, 5 deletions
diff --git a/widgets/VerticalSlider.qml b/widgets/VerticalSlider.qml
index 1dbe3f2..f944da8 100644
--- a/widgets/VerticalSlider.qml
+++ b/widgets/VerticalSlider.qml
@@ -1,4 +1,5 @@
import "root:/widgets"
+import "root:/services"
import "root:/config"
import QtQuick
import QtQuick.Controls
@@ -12,7 +13,7 @@ Slider {
orientation: Qt.Vertical
background: StyledRect {
- color: Appearance.alpha(Appearance.colours.m3surfaceContainer, true)
+ color: Colours.alpha(Colours.palette.m3surfaceContainer, true)
radius: Appearance.rounding.full
StyledRect {
@@ -22,7 +23,7 @@ Slider {
y: root.handle.y
implicitHeight: parent.height - y
- color: Appearance.alpha(Appearance.colours.m3secondary, true)
+ color: Colours.alpha(Colours.palette.m3secondary, true)
radius: Appearance.rounding.full
}
}
@@ -39,7 +40,7 @@ Slider {
RectangularShadow {
anchors.fill: parent
radius: rect.radius
- color: Appearance.colours.m3shadow
+ color: Colours.palette.m3shadow
blur: 5
spread: 0
}
@@ -49,7 +50,7 @@ Slider {
anchors.fill: parent
- color: Appearance.alpha(Appearance.colours.m3inverseSurface, true)
+ color: Colours.alpha(Colours.palette.m3inverseSurface, true)
radius: Appearance.rounding.full
MaterialIcon {
@@ -57,7 +58,7 @@ Slider {
animate: true
text: root.icon
- color: Appearance.colours.m3inverseOnSurface
+ color: Colours.palette.m3inverseOnSurface
anchors.centerIn: parent
states: State {