From 71678662868b09d43c7265733f9f4b675a5e1e74 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 14 Sep 2026 01:20:05 -0600 Subject: [PATCH] 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 --- crates/qbz-qt/qml/controls/QbzPrimaryButton.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/qbz-qt/qml/controls/QbzPrimaryButton.qml b/crates/qbz-qt/qml/controls/QbzPrimaryButton.qml index 20b53ec69..9c676d5fc 100644 --- a/crates/qbz-qt/qml/controls/QbzPrimaryButton.qml +++ b/crates/qbz-qt/qml/controls/QbzPrimaryButton.qml @@ -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