Color animations: more uniform across NWidgets

This commit is contained in:
LemmyCook 2025-08-31 21:36:30 -04:00
parent 102aca0fa0
commit d1f5d301c2
7 changed files with 60 additions and 16 deletions

View file

@ -34,6 +34,18 @@ RowLayout {
border.color: root.checked ? Color.mPrimary : Color.mOutline
border.width: Math.max(1, Style.borderM * scaling)
Behavior on color {
ColorAnimation {
duration: Style.animationFast
}
}
Behavior on border.color {
ColorAnimation {
duration: Style.animationFast
}
}
Rectangle {
implicitWidth: (root.baseSize - 5) * scaling
implicitHeight: (root.baseSize - 5) * scaling