mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 21:31:15 -07:00
Use FontMetrics component to calculate the line height
cura 8563
This commit is contained in:
parent
bf168388dd
commit
bd9722654c
1 changed files with 8 additions and 3 deletions
|
|
@ -162,15 +162,20 @@ Window
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FontMetrics
|
||||||
|
{
|
||||||
|
id: fontMetrics
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
}
|
||||||
|
|
||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@info", "Search in the browser")
|
text: catalog.i18nc("@info", "Search in the browser")
|
||||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||||
|
|
||||||
isIconOnRightSide: true
|
isIconOnRightSide: true
|
||||||
height: UM.theme.getSize("standard_list_lineheight").height
|
height: fontMetrics.height
|
||||||
|
textFont: fontMetrics.font
|
||||||
textFont: UM.Theme.getFont("default")
|
|
||||||
textColor: UM.Theme.getColor("text")
|
textColor: UM.Theme.getColor("text")
|
||||||
|
|
||||||
onClicked: content.item && Qt.openUrlExternally(content.item.searchInBrowserUrl)
|
onClicked: content.item && Qt.openUrlExternally(content.item.searchInBrowserUrl)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue