wbar: more interactions

This commit is contained in:
end-4
2025-11-11 00:01:57 +01:00
parent fdcb95b8a4
commit cbcb8cf8e1
4 changed files with 15 additions and 3 deletions
@@ -12,7 +12,7 @@ Button {
topInset: 4
bottomInset: 4
property color borderColor: ColorUtils.transparentize(Looks.colors.bg1Border, (root.hovered && !root.down) ? Looks.fluentContentTransparency : 1)
property color borderColor: ColorUtils.transparentize(Looks.colors.bg1Border, ((root.hovered && !root.down) || root.checked) ? Looks.fluentContentTransparency : 1)
Behavior on borderColor {
animation: Looks.transition.color.createObject(this)
}
@@ -25,7 +25,7 @@ Button {
color: {
if (root.down) {
return Looks.colors.bg1Active
} else if (root.hovered) {
} else if ((root.hovered && !root.down) || root.checked) {
return Looks.colors.bg1Hover
} else {
return ColorUtils.transparentize(Looks.colors.bg1)