From 1fdaf24526ae688251307f2756bcdb9d7592e383 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 5 May 2025 14:50:18 +1000 Subject: refactor: move colours to separate service --- widgets/StyledScrollBar.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'widgets/StyledScrollBar.qml') 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 { -- cgit v1.2.3-freya