Word every notification at its sender and show notifications as given

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 22:41:59 -04:00
1 parent 051952600d
commit 5fc227b06c
52 files changed
+95 -88

No files matched your search

+6
View File
@@ -376,6 +376,12 @@ var table = {
// Reminders
"Reminder message": "提醒内容",
"Remind in minutes": "几分钟后提醒",
"%1 in %2 (%3)": "%1,还有 %2(%3)",
"Set Reminder": "设置提醒",
"1 reminder": "1 个提醒",
"%1 reminders": "%1 个提醒",
"Invalid reminder": "无效的提醒",
"Enter the number of minutes": "输入分钟数",
// Notifications
"No recent notifications": "没有最近的通知",
// Bar
@@ -44,7 +44,7 @@ BorderSurface {
readonly property bool singleLineToast: sanitizedBody.length === 0
readonly property bool collapseRedundantIcon: singleLineToast && !hasGlyph && summaryStartsWithGlyph
readonly property string sanitizedBody: sanitizeBody(body)
readonly property string styledBody: NotificationLogic.styledBody(I18n.tr(body), app, appIcon)
readonly property string styledBody: NotificationLogic.styledBody(body, app, appIcon)
readonly property color dimColor: Qt.darker(Color.notifications.text, 1.4)
readonly property color bodyColor: Qt.darker(Color.notifications.text, 1.15)
@@ -168,7 +168,7 @@ BorderSurface {
textFormat: Text.PlainText
Layout.fillWidth: true
visible: root.summary.length > 0
text: I18n.tr(root.summary)
text: root.summary
font.family: "Liberation Sans"
color: Color.notifications.text
font.pixelSize: Style.font.title
+2 -2
View File
@@ -90,7 +90,7 @@ Item {
font.family: Style.font.family
font.bold: true
font.pixelSize: Style.font.title
text: I18n.tr(root.message)
text: root.message
}
TextMetrics {
@@ -190,7 +190,7 @@ Item {
// a hole in the padding; the slack lands in the gap after the bar.
horizontalAlignment: root.hasProgress ? Text.AlignRight : Text.AlignLeft
anchors.verticalCenter: parent.verticalCenter
text: I18n.tr(root.message)
text: root.message
font: messageMetrics.font
color: Color.popups.text
elide: Text.ElideRight
+1 -1
View File
@@ -74,7 +74,7 @@ Item {
}
if (!nextMinutes) {
Quickshell.execDetached([root.omarchyPath + "/bin/omarchy-notification-send", "Invalid reminder", "Enter the number of minutes"])
Quickshell.execDetached([root.omarchyPath + "/bin/omarchy-notification-send", I18n.tr("Invalid reminder"), I18n.tr("Enter the number of minutes")])
return
}