mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06: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
|
||||
{
|
||||
text: catalog.i18nc("@info", "Search in the browser")
|
||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||
|
||||
isIconOnRightSide: true
|
||||
height: UM.theme.getSize("standard_list_lineheight").height
|
||||
|
||||
textFont: UM.Theme.getFont("default")
|
||||
height: fontMetrics.height
|
||||
textFont: fontMetrics.font
|
||||
textColor: UM.Theme.getColor("text")
|
||||
|
||||
onClicked: content.item && Qt.openUrlExternally(content.item.searchInBrowserUrl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue