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