Skip to content

Commit 026717c

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 026717c

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
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 {

0 commit comments

Comments
 (0)