fix(qt): accent buttons no longer turn black under the pointer

QbzPrimaryButton animated its fill with a NumberAnimation; a colour
interpolated as a number lands on black, so every Add / Save / Create
button in the modals went dark on hover and its label vanished with it.
A ColorAnimation interpolates the two accents.

cc
This commit is contained in:
vicrodh committed 2026-09-14 01:20:05 -06:00
1 parent ba6d296443
commit 7167866286
1 file changed
+4 -1
@@ -83,7 +83,10 @@ Rectangle {
? Qt.darker(theme.danger, 1.15) : theme.danger)
: ((btnArea.containsMouse && root.btnEnabled)
? theme.accentHover : theme.accent)
Behavior on color { NumberAnimation { duration: 150 } }
// ColorAnimation, NOT NumberAnimation: a NumberAnimation on a colour
// interpolates it as a number and lands on BLACK, which is how every
// accent button in the modals went dark under the pointer (2026-09-14).
Behavior on color { ColorAnimation { duration: 150 } }
Text {
id: lbl