mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 03:29:03 +08:00
Use leftpadding instead of binding anchors outside of siblings
This commit is contained in:
parent
4b324095ec
commit
3dec4e228b
@ -18,6 +18,7 @@ Button
|
||||
property string labelText: ""
|
||||
id: button
|
||||
hoverEnabled: true
|
||||
leftPadding:UM.Theme.getSize("wide_margin").width
|
||||
|
||||
background: Rectangle
|
||||
{
|
||||
@ -45,8 +46,6 @@ Button
|
||||
text: button.text != "" ? replaceText(button.text) : replaceText(button.labelText)
|
||||
height: contentHeight
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
anchors.left: button.left
|
||||
anchors.leftMargin: UM.Theme.getSize("wide_margin").width
|
||||
renderType: Text.NativeRendering
|
||||
font: UM.Theme.getFont("default")
|
||||
color: button.enabled ? UM.Theme.getColor("text") :UM.Theme.getColor("text_inactive")
|
||||
|
Loading…
x
Reference in New Issue
Block a user