added backlight and fixed outbound

This commit is contained in:
2026-07-21 09:17:48 +03:00
parent ff2b8a250e
commit 5392273794
37 changed files with 1560 additions and 76 deletions
+9 -2
View File
@@ -70,13 +70,20 @@ Item {
height: width
radius: width / 2
color: btnColor || "#7b007b"
// Idle: no ring. Feedback states draw the configured coloured outline.
// ColorBehavior is only enabled while in a feedback state so that on
// return to idle the colour snaps away immediately — otherwise a ~1px
// red (or green) remnant stays visible while width animates down.
border.color: status === 1 ? delegateRoot.okColor
: status === 2 ? delegateRoot.errorColor
: status === 3 ? delegateRoot.pendingColor
: Qt.lighter(btnColor || "#7b007b", 1.5)
border.width: status === 1 || status === 2 || status === 3 ? delegateRoot.feedbackWidth : 1
border.width: status === 1 || status === 2 || status === 3 ? delegateRoot.feedbackWidth : 0
Behavior on border.width { NumberAnimation { duration: 200 } }
Behavior on border.color { ColorAnimation { duration: 200 } }
Behavior on border.color {
enabled: status === 1 || status === 2 || status === 3
ColorAnimation { duration: 200 }
}
// Hold-to-activate state (0..1). Only used in "hold" trigger mode.
property real holdProgress: 0.0