Repository navigation
fix: 适配 Treeland 个性化协议变更 - #3574
18202781743 wants to merge 1 commit into
Conversation
Reviewer's Guide本 PR 将两个 Treeland 插件从旧的 personalization manager v1 迁移至 0.7.0 引入的 appearance manager/appearance 协议:写操作集中经特权 manager 发出,读取事件由 appearance 对象接收,同时重构各类外观、光标和字体接口映射及参数转换。 Sequence diagram for Treeland appearance updatessequenceDiagram
participant Worker as TreeLandWorker
participant Manager as TreelandAppearanceManager
participant Compositor as Treeland
participant Appearance as TreelandAppearance
Worker->>Manager: setAppearanceTheme(id, keepAuto)
Manager->>Compositor: set_color_scheme(0 or 1)
Compositor-->>Appearance: color_scheme(scheme)
Appearance-->>Worker: colorSchemeChanged(scheme)
Worker->>Manager: setFontName(fontName)
Manager->>Compositor: set_font(fontName)
Worker->>Manager: setCursorTheme(id)
Manager->>Compositor: set_cursor_theme(id)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743 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 |
da91adf to
6e072d1
Compare
1. Replace treeland-personalization-manager-v1 with treeland-appearance-manager-v1 and treeland-appearance-v1 2. Migrate plugin-personalization TreelandWorker to new protocol APIs 3. Migrate plugin-mouse TreelandWorker to new protocol APIs 4. Use color_scheme enum instead of bare integers in set_color_scheme 5. Multiply font point size by 10 in set_font_size to match treeland protocol 6. Fill accent_color, titlebar_height, corner_radius appearance event callbacks 7. Remove dead init() and self-made Wayland platform checks 8. Add runtime Wayland session guard for treelandworker active in mouse plugin 9. Add !keepAuto gate to auto branch handleGlobalTheme call for consistency Log: Adapt dde-control-center to Treeland appearance protocol migration Influence: 1. Test cursor size setting in mouse plugin 2. Test appearance theme, font, icon, cursor, active color, font size, opacity settings in personalization plugin 3. Verify wallpaper and global theme switching still works 4. Verify font size setting takes effect correctly 5. Verify color scheme switching works correctly 6. Verify no crash under X11 session fix: 适配 Treeland 个性化协议变更 1. 将 treeland-personalization-manager-v1 替换为 treeland-appearance-manager-v1 和 treeland-appearance-v1 2. 迁移 plugin-personalization TreelandWorker 至新协议接口 3. 迁移 plugin-mouse TreelandWorker 至新协议接口 4. 在 set_color_scheme 中使用 color_scheme 枚举替代裸整数 5. set_font_size 中字体磅值乘以 10 匹配 treeland 协议约定 6. 补充 accent_color、titlebar_height、corner_radius 外观事件回调 7. 移除无用的 init() 及自定义 Wayland 平台判断 8. 为鼠标插件 treelandworker 的 active 调用补充运行时 Wayland 会话守卫 9. 为 auto 分支 handleGlobalTheme 调用添加 !keepAuto 门控保持一致性 Log: 适配 dde-control-center 至 Treeland appearance 协议迁移 Influence: 1. 测试鼠标插件中光标大小设置功能 2. 测试个性化插件中主题、字体、图标、光标、活动色、字体大小、透明度设置 3. 验证壁纸和全局主题切换功能正常 4. 验证字体大小设置生效正确 5. 验证色彩模式切换正常 6. 验证 X11 会话下无崩溃 PMS: TASK-396717
6e072d1 to
a856b91
Compare
|
TAG Bot New tag: 6.1.112 |
|
TAG Bot New tag: 6.1.113 |
适配 Treeland 个性化协议变更
将旧的
treeland-personalization-manager-v1协议替换为新的treeland-appearance-manager-unstable-v1(特权写入)和treeland-appearance-unstable-v1(只读事件)协议。变更内容
set_cursor_size调用关联信息
Summary by Sourcery
将 Treeland 个性化集成迁移到新的外观协议接口。
Bug Fixes:
Enhancements:
Build: