Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions panels/notification/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ target_link_libraries(ds-notification-shared PUBLIC

install(TARGETS ds-notification-shared DESTINATION "${LIB_INSTALL_DIR}")
ds_install_package(PACKAGE org.deepin.ds.notification TARGET ds-notification)
ds_handle_package_translation(PACKAGE org.deepin.ds.notification QML_FILES ${CMAKE_CURRENT_SOURCE_DIR}/plugin/NotifyItemContent.qml)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里获取所有的文件吧,免得之后要单个加需要翻译的文件,


add_subdirectory(plugin)
add_subdirectory(bubble)
Expand Down
5 changes: 4 additions & 1 deletion panels/notification/plugin/NotifyItemContent.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import QtQuick.Layouts
import org.deepin.dtk 1.0
import org.deepin.dtk.style 1.0 as DStyle
import org.deepin.ds.notification
import org.deepin.ds.notificationcenter

NotifyItem {
id: root
Expand Down Expand Up @@ -60,11 +61,13 @@ NotifyItem {

Loader {
focus: true
anchors.right: parent.right
active: !(root.strongInteractive && root.actions.length > 0) && (root.closeVisible || closePlaceHolder.hovered || activeFocus)
sourceComponent: SettingActionButton {
sourceComponent: AnimationSettingButton {
Copy link
Contributor

@18202781743 18202781743 Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AnimationSettingButton 应该可以移动到plugin中,
center依赖plugin,而不应该plugin依赖center,
这里的清除按钮也要改成这种么,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的

id: closeBtn
objectName: "closeNotify-" + root.appName
icon.name: "clean-alone"
text: qsTr("Clear alone")
padding: 2
forcusBorderVisible: visualFocus
onClicked: function () {
Expand Down
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification.ts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新资源需要加到 .tx/transifex.yaml

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_ar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_az.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_bo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_ca.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_de.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_es.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_fi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_fr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_hu.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_it.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_ja.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_ko.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_lo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_pl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_ru.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_sq.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
11 changes: 11 additions & 0 deletions panels/notification/translations/org.deepin.ds.notification_uk.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_CN">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation>清除单个</translation>
</message>
</context>
</TS>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_HK">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation>清除單個</translation>
</message>
</context>
</TS>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_TW">
<context>
<name>NotifyItemContent</name>
<message>
<source>Clear alone</source>
<translation>清除單個</translation>
</message>
</context>
</TS>