mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:59:13 +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
|
||||
|
||||
@ -164,25 +164,9 @@ Item
|
||||
}
|
||||
width: UM.Theme.getSize("medium_button_icon").width
|
||||
height: UM.Theme.getSize("medium_button_icon").height
|
||||
|
||||
style: ButtonStyle
|
||||
{
|
||||
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 {}
|
||||
}
|
||||
iconSource: UM.Theme.getIcon("Hamburger")
|
||||
hoverColor: UM.Theme.getColor("small_button_text_hover")
|
||||
color: UM.Theme.getColor("small_button_text")
|
||||
|
||||
onClicked:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user