diff --git a/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml b/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml index 5c092670..15ee3e76 100644 --- a/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml +++ b/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml @@ -229,6 +229,7 @@ Rectangle { property bool hasMoreText: truncated text: historyItem.htmlBody || historyItem.body || "" + textFormat: Text.RichText color: Theme.surfaceVariantText font.pixelSize: Theme.fontSizeSmall width: parent.width diff --git a/quickshell/Modules/Notifications/Center/NotificationCard.qml b/quickshell/Modules/Notifications/Center/NotificationCard.qml index 8b9c03c5..a7705ea5 100644 --- a/quickshell/Modules/Notifications/Center/NotificationCard.qml +++ b/quickshell/Modules/Notifications/Center/NotificationCard.qml @@ -395,6 +395,7 @@ Rectangle { property bool hasMoreText: truncated text: fullText + textFormat: Text.RichText color: Theme.surfaceVariantText font.pixelSize: Theme.fontSizeSmall width: parent.width @@ -705,6 +706,7 @@ Rectangle { property bool hasMoreText: truncated text: modelData?.htmlBody || "" + textFormat: Text.RichText color: Theme.surfaceVariantText font.pixelSize: Theme.fontSizeSmall width: parent.width diff --git a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml index 3e83cd29..e3d0d484 100644 --- a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml +++ b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml @@ -755,6 +755,7 @@ PanelWindow { visible: false width: Math.max(0, backgroundContainer.width - Theme.spacingL - (Theme.spacingL + Theme.notificationHoverRevealMargin) - popupIconSize - Theme.spacingM) text: notificationData ? (notificationData.htmlBody || "") : "" + textFormat: Text.RichText font.pixelSize: Theme.fontSizeSmall elide: Text.ElideNone horizontalAlignment: Text.AlignLeft @@ -912,6 +913,7 @@ PanelWindow { property bool hasMoreText: truncated text: notificationData ? (notificationData.htmlBody || "") : "" + textFormat: Text.RichText color: Theme.surfaceVariantText font.pixelSize: Theme.fontSizeSmall width: parent.width diff --git a/quickshell/Widgets/StyledText.qml b/quickshell/Widgets/StyledText.qml index 602ddc6d..976c9bc1 100644 --- a/quickshell/Widgets/StyledText.qml +++ b/quickshell/Widgets/StyledText.qml @@ -59,6 +59,7 @@ Text { font.pixelSize: Appearance.fontSize.normal font.family: resolvedFontFamily font.weight: Theme.fontWeight + textFormat: Text.PlainText wrapMode: Text.WordWrap elide: Text.ElideRight verticalAlignment: Text.AlignVCenter