fix: Music progress ring color not updating on theme change when paused

This commit is contained in:
loner
2025-11-24 22:56:07 +08:00
parent 73b6aa8c47
commit a57480320f
+14
View File
@@ -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