mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 13:45:52 +08:00
Change extruder combobox style for simple mode
CURA-4211
This commit is contained in:
parent
0025369762
commit
8e774dede4
@ -612,24 +612,11 @@ QtObject {
|
|||||||
}
|
}
|
||||||
label: Item
|
label: Item
|
||||||
{
|
{
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
id: swatch
|
|
||||||
height: UM.Theme.getSize("setting_control").height / 2
|
|
||||||
width: height
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_lining").width
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
color: if (control.color_override != "") {return control.color_override} else {return control.color;}
|
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
|
||||||
border.color: !enabled ? UM.Theme.getColor("setting_control_disabled_border") : UM.Theme.getColor("setting_control_border")
|
|
||||||
}
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
anchors.left: swatch.right
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_lining").width
|
anchors.leftMargin: UM.Theme.getSize("default_lining").width
|
||||||
anchors.right: downArrow.left
|
anchors.right: swatch.left
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_lining").width
|
anchors.rightMargin: UM.Theme.getSize("default_lining").width
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
@ -640,7 +627,25 @@ QtObject {
|
|||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: swatch
|
||||||
|
height: UM.Theme.getSize("setting_control").height / 2
|
||||||
|
width: height
|
||||||
|
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
right: downArrow.left;
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
margins: UM.Theme.getSize("default_margin").width / 4
|
||||||
|
}
|
||||||
|
|
||||||
|
border.width: UM.Theme.getSize("default_lining").width * 2
|
||||||
|
border.color: enabled ? UM.Theme.getColor("setting_control_border") : UM.Theme.getColor("setting_control_disabled_border")
|
||||||
|
radius: width / 2
|
||||||
|
|
||||||
|
color: if (control.color_override != "") {return control.color_override} else {return control.color;}
|
||||||
|
}
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
id: downArrow
|
id: downArrow
|
||||||
|
Loading…
x
Reference in New Issue
Block a user