mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 03:35:59 +08:00
Use FontMetrics component to calculate the line height
cura 8563
This commit is contained in:
parent
bf168388dd
commit
bd9722654c
@ -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…
x
Reference in New Issue
Block a user