mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
Tweak appearance of the menu button
This commit is contained in:
parent
c9ad5eaedb
commit
5638ebe8cf
1 changed files with 2 additions and 24 deletions
|
@ -118,29 +118,7 @@ Item
|
||||||
}
|
}
|
||||||
style: ButtonStyle
|
style: ButtonStyle
|
||||||
{
|
{
|
||||||
background: Rectangle {
|
background: Item {
|
||||||
color:
|
|
||||||
{
|
|
||||||
if(!control.enabled)
|
|
||||||
{
|
|
||||||
return UM.Theme.getColor("setting_control_disabled");
|
|
||||||
}
|
|
||||||
return UM.Theme.getColor("setting_control");
|
|
||||||
}
|
|
||||||
|
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
|
||||||
border.color:
|
|
||||||
{
|
|
||||||
if (!control.enabled)
|
|
||||||
{
|
|
||||||
return UM.Theme.getColor("setting_control_disabled_border");
|
|
||||||
}
|
|
||||||
else if (control.hovered)
|
|
||||||
{
|
|
||||||
return UM.Theme.getColor("setting_control_border_highlight");
|
|
||||||
}
|
|
||||||
return UM.Theme.getColor("setting_control_border");
|
|
||||||
}
|
|
||||||
UM.RecolorImage {
|
UM.RecolorImage {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
@ -203,7 +181,7 @@ Item
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("sidebar_margin").width
|
leftMargin: UM.Theme.getSize("sidebar_margin").width
|
||||||
right: settingVisibilityProfileMenu.left
|
right: settingVisibilityProfileMenu.left
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
rightMargin: Math.floor(UM.Theme.getSize("default_margin").width / 2)
|
||||||
}
|
}
|
||||||
height: visible ? UM.Theme.getSize("setting_control").height : 0
|
height: visible ? UM.Theme.getSize("setting_control").height : 0
|
||||||
Behavior on height { NumberAnimation { duration: 100 } }
|
Behavior on height { NumberAnimation { duration: 100 } }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue