add base update button handler

This commit is contained in:
2026-11-14 20:34:25 +03:00
parent ce6da93363
commit f7892ab6c3
4 changed files with 40 additions and 4 deletions

View File

@@ -17,9 +17,9 @@ Button {
background: Rectangle {
radius: 1
color: !root.enabled ? "#313244" : root.down ? "#6f8fd8" : root.hovered ? "#89b4fa" : "#8CAAEE"
color: !root.enabled ? Theme.color5 : root.down ? Theme.color11 : root.hovered ? Theme.color6 : Theme.color10
border.width: root.visualFocus ? 2 : 0
border.color: "#cdd6f4"
border.color: Theme.color2
Behavior on color { ColorAnimation { duration: 100 } }
}
@@ -27,7 +27,7 @@ Button {
contentItem: Text {
text: root.text
font: root.font
color: root.enabled ? "#1e1e2e" : "#585b70"
color: root.enabled ? Theme.color8 : Theme.color12
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}