added fontweight property to styledtext

This commit is contained in:
2026-08-08 15:22:46 +01:00
parent d0e1e2170c
commit cf4db3b8df

View File

@@ -5,6 +5,7 @@ Text {
id: root id: root
property double fontSize: 12 property double fontSize: 12
property double fontWeight: 8
property bool propo: false property bool propo: false
color: Colors.base color: Colors.base
@@ -13,6 +14,6 @@ Text {
font { font {
family: root.propo == true ? "FiraMono Nerd Font Propo" : "FiraMono Nerd Font" family: root.propo == true ? "FiraMono Nerd Font Propo" : "FiraMono Nerd Font"
pointSize: fontSize pointSize: fontSize
weight: 800 weight: root.fontWeight * 100
} }
} }