Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions panels/notification/plugin/NotifyItemContent.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -232,6 +232,7 @@ NotifyItem {
text: root.appName
font: DTK.fontManager.t10
color: palette.windowText
renderType: Text.QtRendering
}

Item {
Expand All @@ -248,6 +249,7 @@ NotifyItem {
text: root.date
font: DTK.fontManager.t10
color: palette.windowText
renderType: Text.QtRendering
}
}
}
Expand All @@ -262,6 +264,7 @@ NotifyItem {
bold: true
}
color: palette.windowText
renderType: Text.QtRendering
wrapMode: Text.NoWrap
elide: Text.ElideMiddle
Layout.fillWidth: true
Expand All @@ -278,14 +281,15 @@ NotifyItem {
// text 宽度若让Layout通过implicitWidth计算会导致ListView的add动画出现位置错误,故这里手动计算Text的宽度
Layout.preferredWidth: NotifyStyle.contentItem.width - appIcon.width
- appIcon.Layout.leftMargin - appIcon.Layout.rightMargin
- contentLayout.Layout.rightMargin - contentLayout.Layout.leftMargin
- contentLayout.Layout.rightMargin - contentLayout.Layout.leftMargin
- (contentIconLoader.active ? (contentIconLoader.width + 1) : 0)
- bodyRow.spacing * bodyRow.children.length - 1
visible: text !== ""
text: root.content
maximumLineCount: root.contentRowCount
font: DTK.fontManager.t8
color: palette.windowText
renderType: Text.QtRendering
wrapMode: Text.Wrap
elide: Text.ElideRight
linkColor: palette.highlight
Expand Down