From fa4c69cb2b5f5d85613c9dbd5dc146e33a688063 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 5 Jul 2021 15:09:15 +0200 Subject: [PATCH] Merge CloudBlueBG and CloudGreyBG into one icon without colour We don't use the colour of icons. The colour is determined by the theme, and recoloured by UM.RecolorImage. Contributes to issue CURA-8247. --- resources/qml/PrinterSelector/MachineSelector.qml | 8 ++------ .../icons/low/{CloudBlueBG.svg => CloudBadge.svg} | 2 +- resources/themes/cura-light/icons/low/CloudGreyBG.svg | 5 ----- 3 files changed, 3 insertions(+), 12 deletions(-) rename resources/themes/cura-light/icons/low/{CloudBlueBG.svg => CloudBadge.svg} (59%) delete mode 100644 resources/themes/cura-light/icons/low/CloudGreyBG.svg diff --git a/resources/qml/PrinterSelector/MachineSelector.qml b/resources/qml/PrinterSelector/MachineSelector.qml index 7c74be1605..56728aeea0 100644 --- a/resources/qml/PrinterSelector/MachineSelector.qml +++ b/resources/qml/PrinterSelector/MachineSelector.qml @@ -124,13 +124,9 @@ Cura.ExpandablePopup { return UM.Theme.getIcon("CheckBlueBG", "low") } - else if (connectionStatus == "printer_cloud_connected") + else if (connectionStatus == "printer_cloud_connected" || connectionStatus == "printer_cloud_not_available") { - return UM.Theme.getIcon("CloudBlueBG", "low") - } - else if (connectionStatus == "printer_cloud_not_available") - { - return UM.Theme.getIcon("CloudGreyBG", "low") + return UM.Theme.getIcon("CloudBadge", "low") } else { diff --git a/resources/themes/cura-light/icons/low/CloudBlueBG.svg b/resources/themes/cura-light/icons/low/CloudBadge.svg similarity index 59% rename from resources/themes/cura-light/icons/low/CloudBlueBG.svg rename to resources/themes/cura-light/icons/low/CloudBadge.svg index a3c092992d..e37fb324d4 100644 --- a/resources/themes/cura-light/icons/low/CloudBlueBG.svg +++ b/resources/themes/cura-light/icons/low/CloudBadge.svg @@ -1,5 +1,5 @@ - diff --git a/resources/themes/cura-light/icons/low/CloudGreyBG.svg b/resources/themes/cura-light/icons/low/CloudGreyBG.svg deleted file mode 100644 index 0637dd7de9..0000000000 --- a/resources/themes/cura-light/icons/low/CloudGreyBG.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - -