added fontweight property to styledtext
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user