Fix theming of back button in Marketplace

Give it a bit more space for if the translated text is wider, and if it is wider also align it properly with the arrow.

Contributes to issue CURA-6025.
This commit is contained in:
Ghostkeeper 2018-12-31 15:33:37 +01:00
parent 346c820959
commit 7ef8287e52
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276
3 changed files with 9 additions and 4 deletions

View File

@ -61,8 +61,13 @@ Item
id: labelStyle id: labelStyle
text: control.text text: control.text
color: control.enabled ? (control.hovered ? UM.Theme.getColor("primary") : UM.Theme.getColor("text")) : UM.Theme.getColor("text_inactive") color: control.enabled ? (control.hovered ? UM.Theme.getColor("primary") : UM.Theme.getColor("text")) : UM.Theme.getColor("text_inactive")
font: UM.Theme.getFont("default_bold") font: UM.Theme.getFont("medium_bold")
horizontalAlignment: Text.AlignRight horizontalAlignment: Text.AlignLeft
anchors
{
left: parent.left
leftMargin: UM.Theme.getSize("default_margin").width
}
width: control.width width: control.width
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }

View File

@ -37,7 +37,7 @@ ScrollView
width: page.width width: page.width
text: catalog.i18nc("@title:tab", "Plugins") text: catalog.i18nc("@title:tab", "Plugins")
color: UM.Theme.getColor("text_medium") color: UM.Theme.getColor("text_medium")
font: UM.Theme.getFont("medium") font: UM.Theme.getFont("large")
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }
Rectangle Rectangle

View File

@ -487,7 +487,7 @@
"toolbox_detail_header": [1.0, 14.0], "toolbox_detail_header": [1.0, 14.0],
"toolbox_detail_tile": [1.0, 8.0], "toolbox_detail_tile": [1.0, 8.0],
"toolbox_back_column": [6.0, 1.0], "toolbox_back_column": [6.0, 1.0],
"toolbox_back_button": [4.0, 2.0], "toolbox_back_button": [6.0, 2.0],
"toolbox_installed_tile": [1.0, 8.0], "toolbox_installed_tile": [1.0, 8.0],
"toolbox_property_label": [1.0, 2.0], "toolbox_property_label": [1.0, 2.0],
"toolbox_heading_label": [1.0, 3.8], "toolbox_heading_label": [1.0, 3.8],