added backlight and fixed outbound
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user