NText: RichText or StyledText (no plainText)

This commit is contained in:
ItsLemmy
2025-11-19 16:01:18 -05:00
parent 0a6c06b092
commit 6df39604c5
+2 -3
View File
@@ -6,6 +6,7 @@ import qs.Widgets
Text {
id: root
property bool richTextEnabled: false
property string family: Settings.data.ui.fontDefault
property real pointSize: Style.fontSizeM
property bool applyUiScale: true
@@ -17,8 +18,6 @@ Text {
return fontScale;
}
property bool richTextEnabled: false
font.family: root.family
font.weight: Style.fontWeightMedium
font.pointSize: root.pointSize * fontScale
@@ -27,5 +26,5 @@ Text {
wrapMode: Text.NoWrap
verticalAlignment: Text.AlignVCenter
textFormat: richTextEnabled ? Text.RichText : Text.PlainText
textFormat: richTextEnabled ? Text.RichText : Text.StyledText
}