diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 14:50:18 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 14:50:18 +1000 |
| commit | 1fdaf24526ae688251307f2756bcdb9d7592e383 (patch) | |
| tree | 9187b1efd11bfa7d1d2625da29c308a6a51c2842 /widgets/StyledScrollBar.qml | |
| parent | dev: get rid of wrapper width/height = 0 warnings (diff) | |
| download | caelestia-shell-1fdaf24526ae688251307f2756bcdb9d7592e383.tar.gz caelestia-shell-1fdaf24526ae688251307f2756bcdb9d7592e383.tar.bz2 caelestia-shell-1fdaf24526ae688251307f2756bcdb9d7592e383.zip | |
refactor: move colours to separate service
Diffstat (limited to 'widgets/StyledScrollBar.qml')
| -rw-r--r-- | widgets/StyledScrollBar.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/StyledScrollBar.qml b/widgets/StyledScrollBar.qml index 73b7451..a52bbd2 100644 --- a/widgets/StyledScrollBar.qml +++ b/widgets/StyledScrollBar.qml @@ -1,3 +1,4 @@ +import "root:/services" import "root:/config" import QtQuick import QtQuick.Controls @@ -8,7 +9,7 @@ ScrollBar { contentItem: StyledRect { opacity: root.pressed ? 0.8 : root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1) ? 0.6 : 0 radius: Appearance.rounding.full - color: Appearance.colours.m3secondary + color: Colours.palette.m3secondary Behavior on opacity { NumberAnimation { @@ -23,7 +24,7 @@ ScrollBar { implicitWidth: 10 opacity: root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1) ? 0.4 : 0 radius: Appearance.rounding.full - color: Appearance.colours.m3surfaceContainerLow + color: Colours.palette.m3surfaceContainerLow Behavior on opacity { NumberAnimation { |