mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00
Use anchors instead of setting the width
Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713119985. CURA-8421
This commit is contained in:
parent
2f75e299f5
commit
c73f815b69
@ -35,7 +35,9 @@ Button
|
|||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
id: applicationButtonContent
|
id: applicationButtonContent
|
||||||
anchors.centerIn: parent
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
@ -87,9 +89,9 @@ Button
|
|||||||
{
|
{
|
||||||
id: applicationDisplayName
|
id: applicationDisplayName
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
width: base.width - UM.Theme.getSize("default_margin").width
|
|
||||||
height: base.height - applicationIcon.height - 2 * UM.Theme.getSize("default_margin").width // Account for the top and bottom margins
|
height: base.height - applicationIcon.height - 2 * UM.Theme.getSize("default_margin").width // Account for the top and bottom margins
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user