added propo option to StyledText

This commit is contained in:
2026-08-06 17:44:10 +01:00
parent 78f92f1dbf
commit 4ef5f39f6d

View File

@@ -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
} }
} }