Change the color of a circle around the toolbar button

Instead of changing the color of the entire tool when it is hovered or selected, now a background circle will be drawn and its color will change according to whether the button is hovered/selected or not.

In addition, the button icons will now be half the size of the button itself.

CURA-8013
This commit is contained in:
Konstantinos Karmas 2021-06-28 14:56:26 +02:00
parent eeccfc32b9
commit 77a8f36153
2 changed files with 25 additions and 21 deletions

View file

@ -68,7 +68,7 @@ Item
source: UM.Theme.getIcon(model.icon) != "" ? UM.Theme.getIcon(model.icon) : "file:///" + model.location + "/" + model.icon
color: UM.Theme.getColor("icon")
sourceSize: UM.Theme.getSize("button_icon")
sourceSize: Math.round(UM.Theme.getSize("button") / 2)
}
onCheckedChanged: