Small changes in the buttons to fit with the designs.

Contributes to CURA-5786.
This commit is contained in:
Diego Prado Gesto 2018-10-31 17:23:38 +01:00
parent ec0d9f09b7
commit 3a7ae58563
2 changed files with 9 additions and 2 deletions

View file

@ -49,6 +49,7 @@ Item
tooltip: catalog.i18nc("@info:tooltip", "Select the active output device")
iconSource: popup.opened ? UM.Theme.getIcon("arrow_top") : UM.Theme.getIcon("arrow_bottom")
color: UM.Theme.getColor("action_panel_secondary")
visible: (devicesModel.deviceCount > 1)
onClicked: popup.opened ? popup.close() : popup.open()
@ -56,6 +57,7 @@ Item
Popup
{
id: popup
padding: 0
y: -height
x: parent.width - width
@ -72,7 +74,9 @@ Item
{
text: model.description
color: "transparent"
hoverColor: "red"
outlineColor: "transparent"
cornerRadius: 0
hoverColor: UM.Theme.getColor("primary")
onClicked:
{
@ -87,7 +91,8 @@ Item
{
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
color: UM.Theme.getColor("primary")
radius: UM.Theme.getSize("default_radius")
color: UM.Theme.getColor("action_panel_secondary")
border.color: UM.Theme.getColor("lining")
border.width: UM.Theme.getSize("default_lining").width
}