mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Use leftpadding instead of binding anchors outside of siblings
This commit is contained in:
parent
4b324095ec
commit
3dec4e228b
1 changed files with 1 additions and 2 deletions
|
@ -18,6 +18,7 @@ Button
|
||||||
property string labelText: ""
|
property string labelText: ""
|
||||||
id: button
|
id: button
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
leftPadding:UM.Theme.getSize("wide_margin").width
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
|
@ -45,8 +46,6 @@ Button
|
||||||
text: button.text != "" ? replaceText(button.text) : replaceText(button.labelText)
|
text: button.text != "" ? replaceText(button.text) : replaceText(button.labelText)
|
||||||
height: contentHeight
|
height: contentHeight
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.left: button.left
|
|
||||||
anchors.leftMargin: UM.Theme.getSize("wide_margin").width
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: button.enabled ? UM.Theme.getColor("text") :UM.Theme.getColor("text_inactive")
|
color: button.enabled ? UM.Theme.getColor("text") :UM.Theme.getColor("text_inactive")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue