Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp.kuiper <p.kuiper@ultimaker.com>2022-05-30 08:59:50 +0300
committerp.kuiper <p.kuiper@ultimaker.com>2022-05-30 08:59:50 +0300
commit0db75501a312dc9561eabfde26fbecef5f137c5a (patch)
tree53a934ec39348aabd7b5002739092c9b089a333d /resources/qml/ExtruderIcon.qml
parent9fdeffd564aab5f896bd6405176b7a8491c69303 (diff)
parent596c24657d39804c8bc94e6e8f99436115d7e411 (diff)
Merge remote-tracking branch 'origin/main' into PP-3_improved_experimental_bridge_settings
# Conflicts: # resources/definitions/ultimaker.def.json
Diffstat (limited to 'resources/qml/ExtruderIcon.qml')
-rw-r--r--resources/qml/ExtruderIcon.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/resources/qml/ExtruderIcon.qml b/resources/qml/ExtruderIcon.qml
index b9141a449a..fb3269ca78 100644
--- a/resources/qml/ExtruderIcon.qml
+++ b/resources/qml/ExtruderIcon.qml
@@ -15,7 +15,7 @@ Item
property color materialColor
property alias textColor: extruderNumberText.color
property bool extruderEnabled: true
- property alias iconSize: mainIcon.sourceSize
+ property var iconSize
property string iconVariant: "medium"
Item
@@ -24,19 +24,21 @@ Item
anchors.fill: parent
layer.enabled: true // Prevent weird opacity effects.
- UM.RecolorImage
+ UM.ColorImage
{
anchors.fill: parent
- sourceSize: mainIcon.sourceSize
+ width: mainIcon.width
+ height: mainIcon.height
source: UM.Theme.getIcon("ExtruderColor", iconVariant)
color: materialColor
}
- UM.RecolorImage
+ UM.ColorImage
{
id: mainIcon
anchors.fill: parent
- sourceSize: UM.Theme.getSize("extruder_icon")
+ width: UM.Theme.getSize("extruder_icon").width
+ height: UM.Theme.getSize("extruder_icon").height
source: UM.Theme.getIcon("Extruder", iconVariant)
color: extruderNumberText.color