mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:28:58 +08:00
Give action button a sane default height
We don't want to give it a default width since that should just adjust to its contents by default, which is fine. Contributes to issue CURA-5876.
This commit is contained in:
parent
a1068a3ef2
commit
dca286cea5
@ -31,6 +31,7 @@ Button
|
|||||||
|
|
||||||
leftPadding: UM.Theme.getSize("default_margin").width
|
leftPadding: UM.Theme.getSize("default_margin").width
|
||||||
rightPadding: UM.Theme.getSize("default_margin").width
|
rightPadding: UM.Theme.getSize("default_margin").width
|
||||||
|
height: UM.Theme.getSize("action_button").height
|
||||||
|
|
||||||
contentItem: Row
|
contentItem: Row
|
||||||
{
|
{
|
||||||
|
@ -104,7 +104,6 @@ Column
|
|||||||
{
|
{
|
||||||
id: previewStageShortcut
|
id: previewStageShortcut
|
||||||
|
|
||||||
height: UM.Theme.getSize("action_button").height
|
|
||||||
text: catalog.i18nc("@button", "Preview")
|
text: catalog.i18nc("@button", "Preview")
|
||||||
color: UM.Theme.getColor("secondary")
|
color: UM.Theme.getColor("secondary")
|
||||||
hoverColor: UM.Theme.getColor("secondary")
|
hoverColor: UM.Theme.getColor("secondary")
|
||||||
|
@ -85,7 +85,6 @@ Column
|
|||||||
{
|
{
|
||||||
id: prepareButton
|
id: prepareButton
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: UM.Theme.getSize("action_button").height
|
|
||||||
fixedWidthMode: true
|
fixedWidthMode: true
|
||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
|
@ -171,7 +171,6 @@ Cura.ExpandableComponent
|
|||||||
hoverColor: UM.Theme.getColor("secondary")
|
hoverColor: UM.Theme.getColor("secondary")
|
||||||
textColor: UM.Theme.getColor("primary")
|
textColor: UM.Theme.getColor("primary")
|
||||||
textHoverColor: UM.Theme.getColor("text")
|
textHoverColor: UM.Theme.getColor("text")
|
||||||
height: UM.Theme.getSize("action_button").height
|
|
||||||
|
|
||||||
onClicked: popupItem.configuration_method = "custom"
|
onClicked: popupItem.configuration_method = "custom"
|
||||||
}
|
}
|
||||||
@ -192,7 +191,6 @@ Cura.ExpandableComponent
|
|||||||
hoverColor: UM.Theme.getColor("secondary")
|
hoverColor: UM.Theme.getColor("secondary")
|
||||||
textColor: UM.Theme.getColor("primary")
|
textColor: UM.Theme.getColor("primary")
|
||||||
textHoverColor: UM.Theme.getColor("text")
|
textHoverColor: UM.Theme.getColor("text")
|
||||||
height: UM.Theme.getSize("action_button").height
|
|
||||||
|
|
||||||
onClicked: popupItem.configuration_method = "auto"
|
onClicked: popupItem.configuration_method = "auto"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user