diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-27 17:36:13 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-27 17:36:50 +0800 |
| commit | 60781d9d32e516694ef0d2246c620003d5db2d1f (patch) | |
| tree | 8a6206f6312a21aa002f1edc9f53500613dafaa3 /bar/Mpris.qml | |
| parent | babd026bbc5877cc93ac25c7b63870ea64f78dad (diff) | |
refactor: better color code style
Diffstat (limited to 'bar/Mpris.qml')
| -rw-r--r-- | bar/Mpris.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 3f388b4..23c7c2f 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -52,14 +52,14 @@ Item { value: activePlayer?.position || 0 background: IRect { anchors.fill: parent - color: WallustColors.color4 + color: Colors.d2 radius: Style.rounding.smaller } contentItem: Item { IRect { width: pBar.visualPosition * parent.width height: parent.height - color: Qt.rgba(WallustColors.color12.r, WallustColors.color12.g, WallustColors.color12.b, WallustColors.color4.a * 2) + color: Qt.rgba(Colors.d1.r, Colors.d1.g, Colors.d1.b, Colors.d2.a * 2) radius: Style.rounding.smaller Behavior on width { @@ -109,7 +109,7 @@ Item { source: image opacity: activePlayer?.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity radius: 6 - color: WallustColors.background + color: Colors.background3 Behavior on opacity { NumberAnimation { @@ -143,7 +143,7 @@ Item { IText { animate: true opacity: activePlayer?.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity - color: activePlayer?.playbackState === MprisPlaybackState.Playing ? WallustColors.foreground : WallustColors.color15 + color: activePlayer?.playbackState === MprisPlaybackState.Playing ? Colors.foreground1 : Colors.foreground2 text: root.cleanedTitle Behavior on opacity { |
