NIcon: fix fontSize

This commit is contained in:
Ly-sec
2025-09-30 13:12:49 +02:00
parent 773318191d
commit 23887574cf
+2 -1
View File
@@ -7,6 +7,7 @@ Text {
id: root
property string icon: Icons.defaultIcon
property real pointSize: Style.fontSizeL * scaling
visible: (icon !== undefined) && (icon !== "")
text: {
@@ -21,7 +22,7 @@ Text {
return Icons.get(icon)
}
font.family: Icons.fontFamily
font.pointSize: textSize
font.pointSize: root.pointSize
color: Color.mOnSurface
verticalAlignment: Text.AlignVCenter
}