mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-09 18:19:02 +08:00
Recolor toolbar icons
While cleaning up the theme icons I discovered that the toolbar icons were incorrectly relying on the color specified in the icon.
This commit is contained in:
parent
1895cd7062
commit
774eadc7d1
@ -188,12 +188,13 @@ QtObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
label: Item {
|
label: Item {
|
||||||
Image {
|
UM.RecolorImage {
|
||||||
anchors.centerIn: parent;
|
anchors.centerIn: parent;
|
||||||
opacity: !control.enabled ? 0.2 : 1.0
|
opacity: !control.enabled ? 0.2 : 1.0
|
||||||
source: control.iconSource;
|
source: control.iconSource;
|
||||||
width: Theme.getSize("button_icon").width;
|
width: Theme.getSize("button_icon").width;
|
||||||
height: Theme.getSize("button_icon").height;
|
height: Theme.getSize("button_icon").height;
|
||||||
|
color: Theme.getColor("button_text")
|
||||||
|
|
||||||
sourceSize: Theme.getSize("button_icon")
|
sourceSize: Theme.getSize("button_icon")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user