From 3ef336167d6d0c95eda96897dfe1e152853f0dd4 Mon Sep 17 00:00:00 2001 From: lvpeilong Date: Sun, 20 Sep 2026 11:43:24 +0800 Subject: [PATCH] fix: set textFormat to PlainText for notification title The notification title Text element in NotifyItemContent.qml did not set textFormat, so Qt defaulted to Text.AutoText which detects and renders HTML tags. When a notification summary contains HTML tags, the title was rendered as a blue underlined link instead of plain text. Add textFormat: Text.PlainText to the title Text to ensure the title is always rendered as plain text, preventing HTML tag rendering. Log: fix notification title showing link style with HTML tags Bug: https://pms.uniontech.com/bug-view-377829.html Change-Id: IF3B5F7F293B005B5 --- panels/notification/plugin/NotifyItemContent.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/notification/plugin/NotifyItemContent.qml b/panels/notification/plugin/NotifyItemContent.qml index 138cb920e..ac0021b18 100644 --- a/panels/notification/plugin/NotifyItemContent.qml +++ b/panels/notification/plugin/NotifyItemContent.qml @@ -263,6 +263,7 @@ NotifyItem { text: root.title visible: text !== "" maximumLineCount: 1 + textFormat: Text.PlainText font { pixelSize: DTK.fontManager.t8.pixelSize family: DTK.fontManager.t8.family