diff options
author | Konstantinos Karmas <konskarm@gmail.com> | 2021-06-28 15:56:26 +0300 |
---|---|---|
committer | Konstantinos Karmas <konskarm@gmail.com> | 2021-06-28 15:56:26 +0300 |
commit | 77a8f36153738b397883155131a11643d7b9ebfc (patch) | |
tree | 40c6c04bd17d5e773860000c7f518802e66ec2af /resources/qml/Toolbar.qml | |
parent | eeccfc32b99eda453e3f8eaf5949dfa53c22043b (diff) |
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
Diffstat (limited to 'resources/qml/Toolbar.qml')
-rw-r--r-- | resources/qml/Toolbar.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml index b388764c74..ec4d29420b 100644 --- a/resources/qml/Toolbar.qml +++ b/resources/qml/Toolbar.qml @@ -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: |