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:
fieldOfView 2016-09-23 10:40:49 +02:00
parent 1895cd7062
commit 774eadc7d1

View File

@ -188,12 +188,13 @@ QtObject {
}
label: Item {
Image {
UM.RecolorImage {
anchors.centerIn: parent;
opacity: !control.enabled ? 0.2 : 1.0
source: control.iconSource;
width: Theme.getSize("button_icon").width;
height: Theme.getSize("button_icon").height;
color: Theme.getColor("button_text")
sourceSize: Theme.getSize("button_icon")
}