From 78987ba666c332920d7fea098a5388e342b099b6 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 21 Sep 2017 15:19:00 +0200 Subject: [PATCH] When tool icon can not be found in theme, try to find it in the plugin folder CURA-4345 --- resources/qml/Toolbar.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml index 0903c0555b..bc7905c527 100644 --- a/resources/qml/Toolbar.qml +++ b/resources/qml/Toolbar.qml @@ -34,7 +34,15 @@ Item Button { text: model.name - iconSource: UM.Theme.getIcon(model.icon); + iconSource: + { + var result = UM.Theme.getIcon(model.icon) + if(result == "") + { + return model.location + "/" + model.icon + } + return result + } checkable: true; checked: model.active;