Skip to content

Commit 4ce896f

Browse files
committed
feat: add camera status OSD notifications
Added camera status OSD (On-Screen Display) notifications to the notification panel 1. Added two new icon files: osd_camera_on.dci and osd_camera_off.dci for camera status indicators 2. Updated main.qml to include new notification types for camera on/ off states 3. Added ListElement entries for CameraOn and CameraOff types with corresponding icons and translated text This enhancement provides visual feedback to users when their camera is turned on or off, improving the user experience for camera-related operations Log: Added camera status notifications in OSD panel Influence: 1. Test camera on/off notifications appear in OSD when camera state changes 2. Verify camera on icon (osd_camera_on) displays correctly 3. Verify camera off icon (osd_camera_off) displays correctly 4. Check notification text is properly translated in different languages 5. Ensure notifications integrate properly with existing OSD notification system feat: 添加摄像头状态 OSD 通知 在通知面板中添加摄像头状态 OSD(屏幕显示)通知功能 1. 新增两个图标文件:osd_camera_on.dci 和 osd_camera_off.dci 用于摄像头 状态指示 2. 更新 main.qml 文件,添加摄像头开关状态的新通知类型 3. 添加 CameraOn 和 CameraOff 类型的 ListElement 条目,包含对应图标和翻 译文本 此增强功能在用户摄像头开启或关闭时提供视觉反馈,改善摄像头相关操作用户 体验 Log: 在 OSD 面板中添加摄像头状态通知 Influence: 1. 测试摄像头状态变化时 OSD 中是否显示开关通知 2. 验证摄像头开启图标(osd_camera_on)正确显示 3. 验证摄像头关闭图标(osd_camera_off)正确显示 4. 检查通知文本在不同语言环境下是否正确翻译 5. 确保通知与现有 OSD 通知系统正确集成 PMS: BUG-338439
1 parent 6add1d7 commit 4ce896f

27 files changed

+288
-64
lines changed
2.52 KB
Binary file not shown.
1.95 KB
Binary file not shown.

panels/notification/osd/default/package/main.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ AppletItem {
7272
ListElement { type: "SwitchWM3D"; iconName: "osd_wm_3d"; text: qsTr("Window effect enabled")}
7373
ListElement { type: "SwitchWM2D"; iconName: "osd_wm_2d"; text: qsTr("Window effect disabled")}
7474
ListElement { type: "SwitchWMError"; iconName: "osd_wm_failed"; text: qsTr("Failed to enable window effects")}
75+
ListElement { type: "CameraOn"; iconName: "osd_camera_on"; text: qsTr("Camera on")}
76+
ListElement { type: "CameraOff"; iconName: "osd_camera_off"; text: qsTr("Camera off")}
7577
}
7678

7779
RowLayout {

panels/notification/osd/default/translations/org.deepin.ds.osd.default.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,13 @@
8383
<source>Microphone on</source>
8484
<translation type="unfinished"></translation>
8585
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
93+
</message>
8694
</context>
8795
</TS>

panels/notification/osd/default/translations/org.deepin.ds.osd.default_ar.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="ar">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="ar">
24
<context>
35
<name>main</name>
46
<message>
@@ -81,5 +83,13 @@
8183
<source>Microphone on</source>
8284
<translation>تشغيل الميكروفون</translation>
8385
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
93+
</message>
8494
</context>
85-
</TS>
95+
</TS>

panels/notification/osd/default/translations/org.deepin.ds.osd.default_az.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="az">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="az">
24
<context>
35
<name>main</name>
46
<message>
@@ -75,11 +77,19 @@
7577
</message>
7678
<message>
7779
<source>Microphone off</source>
78-
<translation type="unfinished"/>
80+
<translation type="unfinished"></translation>
7981
</message>
8082
<message>
8183
<source>Microphone on</source>
82-
<translation type="unfinished"/>
84+
<translation type="unfinished"></translation>
85+
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
8393
</message>
8494
</context>
85-
</TS>
95+
</TS>
Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="bo">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="bo">
24
<context>
35
<name>main</name>
46
<message>
57
<source>WLAN on</source>
6-
<translation type="unfinished"/>
8+
<translation type="unfinished"></translation>
79
</message>
810
<message>
911
<source>WLAN off</source>
10-
<translation type="unfinished"/>
12+
<translation type="unfinished"></translation>
1113
</message>
1214
<message>
1315
<source>Caps Lock on</source>
14-
<translation type="unfinished"/>
16+
<translation type="unfinished"></translation>
1517
</message>
1618
<message>
1719
<source>Caps Lock off</source>
@@ -27,59 +29,67 @@
2729
</message>
2830
<message>
2931
<source>Touchpad on</source>
30-
<translation type="unfinished"/>
32+
<translation type="unfinished"></translation>
3133
</message>
3234
<message>
3335
<source>Touchpad off</source>
34-
<translation type="unfinished"/>
36+
<translation type="unfinished"></translation>
3537
</message>
3638
<message>
3739
<source>Touchpad toggle</source>
38-
<translation type="unfinished"/>
40+
<translation type="unfinished"></translation>
3941
</message>
4042
<message>
4143
<source>Fn toggle</source>
42-
<translation type="unfinished"/>
44+
<translation type="unfinished"></translation>
4345
</message>
4446
<message>
4547
<source>Airplane mode on</source>
46-
<translation type="unfinished"/>
48+
<translation type="unfinished"></translation>
4749
</message>
4850
<message>
4951
<source>Airplane mode off</source>
50-
<translation type="unfinished"/>
52+
<translation type="unfinished"></translation>
5153
</message>
5254
<message>
5355
<source>Balanced power</source>
5456
<translation>དོ་མཉམ་དཔེ་རྣམ།</translation>
5557
</message>
5658
<message>
5759
<source>Power saver</source>
58-
<translation type="unfinished"/>
60+
<translation type="unfinished"></translation>
5961
</message>
6062
<message>
6163
<source>High performance</source>
62-
<translation type="unfinished"/>
64+
<translation type="unfinished"></translation>
6365
</message>
6466
<message>
6567
<source>Window effect enabled</source>
66-
<translation type="unfinished"/>
68+
<translation type="unfinished"></translation>
6769
</message>
6870
<message>
6971
<source>Window effect disabled</source>
70-
<translation type="unfinished"/>
72+
<translation type="unfinished"></translation>
7173
</message>
7274
<message>
7375
<source>Failed to enable window effects</source>
74-
<translation type="unfinished"/>
76+
<translation type="unfinished"></translation>
7577
</message>
7678
<message>
7779
<source>Microphone off</source>
78-
<translation type="unfinished"/>
80+
<translation type="unfinished"></translation>
7981
</message>
8082
<message>
8183
<source>Microphone on</source>
82-
<translation type="unfinished"/>
84+
<translation type="unfinished"></translation>
85+
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
8393
</message>
8494
</context>
85-
</TS>
95+
</TS>

panels/notification/osd/default/translations/org.deepin.ds.osd.default_ca.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="ca">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="ca">
24
<context>
35
<name>main</name>
46
<message>
@@ -81,5 +83,13 @@
8183
<source>Microphone on</source>
8284
<translation>Micròfon obert</translation>
8385
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
93+
</message>
8494
</context>
85-
</TS>
95+
</TS>

panels/notification/osd/default/translations/org.deepin.ds.osd.default_de.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="de">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="de">
24
<context>
35
<name>main</name>
46
<message>
@@ -75,11 +77,19 @@
7577
</message>
7678
<message>
7779
<source>Microphone off</source>
78-
<translation type="unfinished"/>
80+
<translation type="unfinished"></translation>
7981
</message>
8082
<message>
8183
<source>Microphone on</source>
82-
<translation type="unfinished"/>
84+
<translation type="unfinished"></translation>
85+
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
8393
</message>
8494
</context>
85-
</TS>
95+
</TS>

panels/notification/osd/default/translations/org.deepin.ds.osd.default_es.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="es">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="es">
24
<context>
35
<name>main</name>
46
<message>
@@ -81,5 +83,13 @@
8183
<source>Microphone on</source>
8284
<translation>Micrófono encendido</translation>
8385
</message>
86+
<message>
87+
<source>Camera on</source>
88+
<translation type="unfinished"></translation>
89+
</message>
90+
<message>
91+
<source>Camera off</source>
92+
<translation type="unfinished"></translation>
93+
</message>
8494
</context>
85-
</TS>
95+
</TS>

0 commit comments

Comments
 (0)