mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:29:01 +08:00
Replace toolbutton with simplebutton
This commit is contained in:
parent
82e2f038ac
commit
e1d6c89cf2
@ -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…
x
Reference in New Issue
Block a user