diff --git a/resources/qml/ExtruderButton.qml b/resources/qml/ExtruderButton.qml index feb399d528..b87855e25e 100644 --- a/resources/qml/ExtruderButton.qml +++ b/resources/qml/ExtruderButton.qml @@ -22,6 +22,7 @@ Cura.ToolbarButton { materialColor: extruder.color extruderEnabled: extruder.stack.isEnabled + iconVariant: "default" property int index: extruder.index } diff --git a/resources/qml/ExtruderIcon.qml b/resources/qml/ExtruderIcon.qml index a4118228db..4cc9ffe69b 100644 --- a/resources/qml/ExtruderIcon.qml +++ b/resources/qml/ExtruderIcon.qml @@ -16,6 +16,8 @@ Item property color materialColor property alias textColor: extruderNumberText.color property bool extruderEnabled: true + property alias iconSize: mainIcon.sourceSize + property string iconVariant: "medium" Item { @@ -25,16 +27,18 @@ Item UM.RecolorImage { anchors.fill: parent + sourceSize: mainIcon.sourceSize - source: UM.Theme.getIcon("ExtruderColor", "medium") + source: UM.Theme.getIcon("ExtruderColor", iconVariant) color: materialColor } UM.RecolorImage { id: mainIcon anchors.fill: parent + sourceSize: UM.Theme.getSize("extruder_icon") - source: UM.Theme.getIcon("Extruder", "medium") + source: UM.Theme.getIcon("Extruder", iconVariant) color: UM.Theme.getColor("text") } @@ -43,7 +47,7 @@ Item id: extruderNumberText anchors.centerIn: parent text: index + 1 - font: UM.Theme.getFont("small") + font: UM.Theme.getFont("small_black") color: UM.Theme.getColor("text") width: contentWidth height: contentHeight diff --git a/resources/themes/cura-light/icons/default/Extruder.svg b/resources/themes/cura-light/icons/default/Extruder.svg new file mode 100644 index 0000000000..7c17fa67ca --- /dev/null +++ b/resources/themes/cura-light/icons/default/Extruder.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/resources/themes/cura-light/icons/default/ExtruderColor.svg b/resources/themes/cura-light/icons/default/ExtruderColor.svg new file mode 100644 index 0000000000..ff202e7296 --- /dev/null +++ b/resources/themes/cura-light/icons/default/ExtruderColor.svg @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/resources/themes/cura-light/icons/medium/ExtruderColor.svg b/resources/themes/cura-light/icons/medium/ExtruderColor.svg index c017c69106..85360a9622 100644 --- a/resources/themes/cura-light/icons/medium/ExtruderColor.svg +++ b/resources/themes/cura-light/icons/medium/ExtruderColor.svg @@ -1,10 +1,13 @@ - + - - - + + + diff --git a/resources/themes/cura-light/theme.json b/resources/themes/cura-light/theme.json index c45eb00c9e..43151e746d 100644 --- a/resources/themes/cura-light/theme.json +++ b/resources/themes/cura-light/theme.json @@ -129,24 +129,44 @@ "family": "Noto Sans" }, "small": { - "size": 0.7, + "size": 0.9, "weight": 40, "family": "Noto Sans" }, "small_ja_JP": { - "size": 0.7, + "size": 0.9, "weight": 50, "family": "Noto Sans" }, "small_zh_CN": { - "size": 0.7, + "size": 0.9, "weight": 50, "family": "Noto Sans" }, "small_zh_TW": { - "size": 0.7, + "size": 0.9, "weight": 50, "family": "Noto Sans" + }, + "small_black": { + "size": 0.9, + "weight": 100, + "family": "Noto Sans" + }, + "small_black_ja_JP": { + "size": 0.9, + "weight": 100, + "family": "Noto Sans" + }, + "small_black_zh_CN": { + "size": 0.9, + "weight": 100, + "family": "Noto Sans" + }, + "small_black_zh_TW": { + "size": 0.9, + "weight": 100, + "family": "Noto Sans" } }, @@ -503,7 +523,7 @@ "thin_margin": [0.71, 0.71], "narrow_margin": [0.5, 0.5], - "extruder_icon": [2.33, 2.33], + "extruder_icon": [2.5, 2.5], "section": [0.0, 2], "section_control": [0, 1],