From 622f06249c160f9aa03940aaca9affb0ff2400a2 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 23:15:54 +0200 Subject: [PATCH] background overlay: smooth color transitions on colon, glow, seconds bar --- modules/BackgroundOverlay.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/BackgroundOverlay.qml b/modules/BackgroundOverlay.qml index 696131c..bd028b6 100644 --- a/modules/BackgroundOverlay.qml +++ b/modules/BackgroundOverlay.qml @@ -53,6 +53,11 @@ PanelWindow { Text { text: ":" color: colon._colors[colon._colorIdx % colon._colors.length] + Behavior on color { + ColorAnimation { + duration: 800 + } + } font.pixelSize: 72 font.family: M.Theme.fontFamily font.bold: true @@ -104,6 +109,11 @@ PanelWindow { property int _colorIdx: 0 readonly property var _colors: [M.Theme.base08, M.Theme.base09, M.Theme.base0A, M.Theme.base0B, M.Theme.base0C, M.Theme.base0D, M.Theme.base0E, M.Theme.base05] color: _colors[_colorIdx % _colors.length] + Behavior on color { + ColorAnimation { + duration: 800 + } + } SequentialAnimation { loops: Animation.Infinite @@ -176,6 +186,11 @@ PanelWindow { width: parent.width * (clock.date.getSeconds() / 59) height: parent.height color: colon._colors[colon._colorIdx % colon._colors.length] + Behavior on color { + ColorAnimation { + duration: 800 + } + } radius: 1 opacity: 0.6