mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 06:55:55 +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
|
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…
x
Reference in New Issue
Block a user