From a57480320f63dff8977a19d280607ccbe797ad1f Mon Sep 17 00:00:00 2001 From: loner <2788892716@qq.com> Date: Mon, 24 Nov 2025 22:56:07 +0800 Subject: [PATCH] fix: Music progress ring color not updating on theme change when paused --- Modules/Bar/Widgets/MediaMini.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Modules/Bar/Widgets/MediaMini.qml b/Modules/Bar/Widgets/MediaMini.qml index c49582fe..9193a8b3 100644 --- a/Modules/Bar/Widgets/MediaMini.qml +++ b/Modules/Bar/Widgets/MediaMini.qml @@ -397,6 +397,13 @@ Item { } } + // Property to track mPrimary color changes and trigger repaint + Item { + id: colorTrackerHorizontal + property color currentColor: Color.mPrimary + onCurrentColorChanged: progressCanvas.requestPaint() + } + // Album art or icon - only show album art when enabled and player is active Item { anchors.fill: parent @@ -675,6 +682,13 @@ Item { } } + // Property to track mPrimary color changes and trigger repaint for vertical canvas + Item { + id: colorTrackerVertical + property color currentColor: Color.mPrimary + onCurrentColorChanged: progressCanvasVertical.requestPaint() + } + // Mouse area for hover detection MouseArea { id: mouseArea