added propo option to StyledText
This commit is contained in:
@@ -2,12 +2,17 @@ import QtQuick
|
|||||||
import "../Color.js" as Colors
|
import "../Color.js" as Colors
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
property double fontSize: 12
|
||||||
|
property bool propo: false
|
||||||
|
|
||||||
color: Colors.base
|
color: Colors.base
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
font {
|
font {
|
||||||
family: "FiraMono Nerd Font"
|
family: root.propo == true ? "FiraMono Nerd Font Propo" : "FiraMono Nerd Font"
|
||||||
pointSize: 12
|
pointSize: fontSize
|
||||||
weight: 800
|
weight: 800
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user