mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Swap "+" and "-" made from Rectangle elements for icons.
CURA-8688
This commit is contained in:
parent
e75993e7f3
commit
9f75b870a7
1 changed files with 10 additions and 20 deletions
|
@ -102,14 +102,13 @@ Item
|
|||
color: spinBox.up.pressed ? spinBox.palette.mid : UM.Theme.getColor("detail_background")
|
||||
}
|
||||
|
||||
// Minus icon
|
||||
Rectangle
|
||||
UM.RecolorImage
|
||||
{
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: parent.width / 4
|
||||
height: 2
|
||||
anchors.centerIn: parent
|
||||
height: parent.height / 2.5
|
||||
width: height
|
||||
color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("text_disabled")
|
||||
source: UM.Theme.getIcon("Minus")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -123,22 +122,13 @@ Item
|
|||
color: spinBox.up.pressed ? spinBox.palette.mid : UM.Theme.getColor("detail_background")
|
||||
}
|
||||
|
||||
// Plus Icon
|
||||
Rectangle
|
||||
UM.RecolorImage
|
||||
{
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: parent.width / 3.5
|
||||
height: 2
|
||||
color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("text_disabled")
|
||||
}
|
||||
Rectangle
|
||||
{
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
width: 2
|
||||
height: parent.width / 3.5
|
||||
anchors.centerIn: parent
|
||||
height: parent.height / 2.5
|
||||
width: height
|
||||
color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("text_disabled")
|
||||
source: UM.Theme.getIcon("Plus")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue