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
|
2555681 to
86a8fa0
Compare
86a8fa0 to
7d4bdef
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 similar comment
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
7d4bdef to
7b5b1d5
Compare
623caf2 to
44703bd
Compare
|
TAG Bot New tag: 2.0.39 |
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. Organized 20 SVG battery icons (0-100%) into dark/ and light/ theme directories with _16px naming, updated qrc paths and removed manual theme suffix logic 6. Dropped theme-type based -dark icon name suffix in updateBatteryDisplay; theme variant resolved automatically 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%)按 dark/light 主题目录整理并加 _16px 后缀,更新 qrc 路径 6. 移除 updateBatteryDisplay 中按主题拼接 -dark 后缀的逻辑,主题变体自动解析 Log: 在任务栏中显示蓝牙设备电量 PMS: STORY-41279 Influence: 任务栏显示蓝牙设备电量
44703bd to
6dac05a
Compare
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
Show battery levels for connected Bluetooth devices in the dock tray.
New Features:
Enhancements:
Chores: