mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Replace toolbutton with simplebutton
This commit is contained in:
parent
82e2f038ac
commit
e1d6c89cf2
1 changed files with 4 additions and 20 deletions
|
@ -151,7 +151,7 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolButton
|
UM.SimpleButton
|
||||||
{
|
{
|
||||||
id: settingVisibilityMenu
|
id: settingVisibilityMenu
|
||||||
|
|
||||||
|
@ -164,25 +164,9 @@ Item
|
||||||
}
|
}
|
||||||
width: UM.Theme.getSize("medium_button_icon").width
|
width: UM.Theme.getSize("medium_button_icon").width
|
||||||
height: UM.Theme.getSize("medium_button_icon").height
|
height: UM.Theme.getSize("medium_button_icon").height
|
||||||
|
iconSource: UM.Theme.getIcon("Hamburger")
|
||||||
style: ButtonStyle
|
hoverColor: UM.Theme.getColor("small_button_text_hover")
|
||||||
{
|
color: UM.Theme.getColor("small_button_text")
|
||||||
background: Item
|
|
||||||
{
|
|
||||||
UM.RecolorImage
|
|
||||||
{
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
width: UM.Theme.getSize("medium_button_icon").width
|
|
||||||
height: UM.Theme.getSize("medium_button_icon").height
|
|
||||||
sourceSize.width: width
|
|
||||||
sourceSize.height: height
|
|
||||||
color: control.hovered ? UM.Theme.getColor("small_button_text_hover") : UM.Theme.getColor("small_button_text")
|
|
||||||
source: UM.Theme.getIcon("Hamburger")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
label: Label {}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue