feat(bluetooth): add battery level display for bluetooth devices - #487
feat(bluetooth): add battery level display for bluetooth devices#487MyLeeJiEun wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Sorry @MyLeeJiEun, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Hi @MyLeeJiEun. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's GuideImplements end-to-end Bluetooth device battery display in the dock by adding a battery field to Device/PluginStandardItem, wiring it through Adapter and BluetoothDeviceItem, and rendering a themed icon plus percentage text in PluginItemWidget using new SVG resources. Sequence diagram for Bluetooth device battery propagation to dock UIsequenceDiagram
participant Adapter
participant Device
participant BluetoothDeviceItem
participant PluginStandardItem
participant PluginItemWidget
Adapter->>Device: setBattery(battery)
Device-->>BluetoothDeviceItem: batteryChanged(battery)
BluetoothDeviceItem->>PluginStandardItem: updateBattery(battery)
PluginStandardItem-->>PluginItemWidget: batteryChanged(battery)
PluginItemWidget->>PluginItemWidget: updateBatteryDisplay(battery)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, MyLeeJiEun The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1. Added battery property (m_battery, setter, getter, batteryChanged signal) to Device class 2. Parse Battery field from JSON in Adapter's addDevice, updateDevice, initDevicesList 3. Connect batteryChanged signal to updatePluginStandardItem in BluetoothAdapterItem 4. Added battery icon and percentage label widgets in PluginItemWidget 5. Added 20 SVG battery icons (0-100%) for light and dark themes, updated qrc Log: Add Bluetooth device battery level display in the dock tray Influence: Bluetooth device battery shown in dock feat(bluetooth): 添加蓝牙设备电量显示功能 1. Device 类新增 battery 属性(m_battery、setter、getter、batteryChanged 信号) 2. Adapter 的 addDevice、updateDevice、initDevicesList 中解析 Battery 字段 3. BluetoothAdapterItem 连接 batteryChanged 信号更新显示 4. PluginItemWidget 新增电量图标和百分比标签控件 5. 新增 20 个 SVG 电量图标(0-100%)支持明暗主题,更新 qrc 资源文件 Log: 在任务栏中显示蓝牙设备电量 PMS: STORY-41279 Influence: 任务栏显示蓝牙设备电量
2555681 to
86a8fa0
Compare
| <file>texts/plugin_item_select_16px.svg</file> | ||
| <file>texts/refresh_16px.svg</file> | ||
| <file>texts/arrow-up_12px.svg</file> | ||
| <file>icons/battery-000-symbolic.svg</file> |
There was a problem hiding this comment.
这种buildin的icon,可以按照资源路径的方式去区分暗亮色,而不是图标命名的方式,
Log: Add Bluetooth device battery level display in the dock tray
Influence: Bluetooth device battery shown in dock
feat(bluetooth): 添加蓝牙设备电量显示功能
Log: 在任务栏中显示蓝牙设备电量
PMS: STORY-41279
Influence: 任务栏显示蓝牙设备电量
Summary by Sourcery
Add Bluetooth device battery level display in the dock and propagate battery data from the backend device model to the UI.
New Features:
Enhancements: