mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 13:59:04 +08:00
Fix extruderIcon sizing
CURA-9278
This commit is contained in:
parent
a56a21cf93
commit
d3ee9c4c24
@ -8,16 +8,16 @@ Item
|
||||
{
|
||||
id: extruderIconItem
|
||||
|
||||
implicitWidth: UM.Theme.getSize("extruder_icon").width
|
||||
implicitHeight: UM.Theme.getSize("extruder_icon").height
|
||||
|
||||
property bool checked: true
|
||||
property color materialColor
|
||||
property alias textColor: extruderNumberText.color
|
||||
property bool extruderEnabled: true
|
||||
property var iconSize
|
||||
property var iconSize: UM.Theme.getSize("extruder_icon").width
|
||||
property string iconVariant: "medium"
|
||||
|
||||
implicitWidth: iconSize
|
||||
implicitHeight: iconSize
|
||||
|
||||
Item
|
||||
{
|
||||
opacity: extruderEnabled ? 1 : UM.Theme.getColor("extruder_disabled").a
|
||||
@ -27,8 +27,8 @@ Item
|
||||
UM.ColorImage
|
||||
{
|
||||
anchors.fill: parent
|
||||
width: mainIcon.width
|
||||
height: mainIcon.height
|
||||
width: iconSize
|
||||
height: iconSize
|
||||
|
||||
source: UM.Theme.getIcon("ExtruderColor", iconVariant)
|
||||
color: materialColor
|
||||
@ -37,8 +37,8 @@ Item
|
||||
{
|
||||
id: mainIcon
|
||||
anchors.fill: parent
|
||||
width: UM.Theme.getSize("extruder_icon").width
|
||||
height: UM.Theme.getSize("extruder_icon").height
|
||||
width: iconSize
|
||||
height: iconSize
|
||||
|
||||
source: UM.Theme.getIcon("Extruder", iconVariant)
|
||||
color: extruderNumberText.color
|
||||
|
Loading…
x
Reference in New Issue
Block a user