From 6df39604c51d787bc7c0fb17b6e5459140e4ec70 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Wed, 19 Nov 2025 16:01:18 -0500 Subject: [PATCH] NText: RichText or StyledText (no plainText) --- Widgets/NText.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Widgets/NText.qml b/Widgets/NText.qml index 68790015..96a438a3 100644 --- a/Widgets/NText.qml +++ b/Widgets/NText.qml @@ -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 }