From 1b6c172e6dcd2b55da62e2cc81ddf269e1fe7b40 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Thu, 12 Jul 2018 16:42:48 +0200 Subject: [PATCH] CURA-5536 Add the icon indicating when a plugin is already installed. --- .../Toolbox/resources/images/installed_check.svg | 8 ++++++++ .../resources/qml/ToolboxDownloadsGridTile.qml | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 plugins/Toolbox/resources/images/installed_check.svg diff --git a/plugins/Toolbox/resources/images/installed_check.svg b/plugins/Toolbox/resources/images/installed_check.svg new file mode 100644 index 0000000000..1f1302770b --- /dev/null +++ b/plugins/Toolbox/resources/images/installed_check.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml b/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml index 17b28fe136..89966caba4 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDownloadsGridTile.qml @@ -40,6 +40,21 @@ Item source: model.icon_url || "../images/logobot.svg" mipmap: true } + UM.RecolorImage + { + width: (parent.width * 0.4) | 0 + height: (parent.height * 0.4) | 0 + anchors + { + bottom: parent.bottom + right: parent.right + } + sourceSize.width: width + sourceSize.height: height + visible: toolbox.isInstalled(model.id) + color: UM.Theme.getColor("primary") + source: "../images/installed_check.svg" + } } Column {