mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Align layout of providers with machine selector
It's quite different in detail because there is a lot less content to show here (no machine type, icons, etc), but the basics are the same now. One possible issue is that the button doesn't extend all the way to the right, so you can't click everywhere on the shortest item. I'll see if that can still be fixed. Contributes to issue CURA-8008.
This commit is contained in:
parent
f8aa6a3398
commit
739f8834d0
1 changed files with 6 additions and 4 deletions
|
@ -85,6 +85,7 @@ Item
|
|||
contentAlignment: Cura.ExpandablePopup.ContentAlignment.AlignLeft
|
||||
headerCornerSide: Cura.RoundedRectangle.Direction.All
|
||||
headerPadding: Math.round((parent.height - UM.Theme.getSize("button_icon").height) / 2)
|
||||
contentPadding: UM.Theme.getSize("default_lining").width
|
||||
enabled: visible
|
||||
|
||||
height: parent.height
|
||||
|
@ -102,8 +103,6 @@ Item
|
|||
contentItem: Item
|
||||
{
|
||||
id: popup
|
||||
width: openProviderColumn.width
|
||||
height: openProviderColumn.height
|
||||
|
||||
Column
|
||||
{
|
||||
|
@ -127,9 +126,11 @@ Item
|
|||
color: UM.Theme.getColor("text_medium")
|
||||
font: UM.Theme.getFont("medium")
|
||||
renderType: Text.NativeRendering
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
width: contentWidth
|
||||
height: contentHeight
|
||||
height: UM.Theme.getSize("action_button").height
|
||||
leftPadding: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
|
||||
Repeater
|
||||
|
@ -152,7 +153,7 @@ Item
|
|||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
width: contentWidth
|
||||
height: contentHeight
|
||||
height: parent.height
|
||||
}
|
||||
|
||||
onClicked:
|
||||
|
@ -171,6 +172,7 @@ Item
|
|||
{
|
||||
color: parent.hovered ? UM.Theme.getColor("action_button_hovered") : "transparent"
|
||||
radius: UM.Theme.getSize("action_button_radius").width
|
||||
width: popup.width
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue