Repository navigation
feat: add org.deepin.dtk.palette dconfig for palette colors - #154
18202781743 wants to merge 1 commit into
Conversation
|
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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR migrates hard-coded dtkgui palette colors into dconfig metadata by adding synchronized base/light and dark theme configuration files, with validated color encoding and complete metadata for all 32 QPalette and DPalette keys; existing recursive installation rules require no changes. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
797e757 to
0034608
Compare
1. Add org.deepin.dtk.palette.json base config with 32 color keys 2. Add light and dark subpath configs for theme-specific palette values 3. Use #AARRGGBB format with alpha truncation matching C++ values 4. Keys use semantic names without qPalette/dPalette prefixes Influence: 1. Verify palette config files are installed to /usr/share/dsg/configs/ 2. Verify all 32 keys present in base, light, and dark configs 3. Verify light config matches base, dark config has correct dark values feat: 添加调色板 dconfig 配置 1. 新增 org.deepin.dtk.palette.json 基础配置,包含 32 个颜色 key 2. 新增 light 和 dark subpath 配置,区分亮暗主题色值 3. 使用 #AARRGGBB 格式,alpha 截断值与 C++ 一致 4. key 使用语义化名称,去除 qPalette/dPalette 前缀 Influence: 1. 验证调色板配置文件安装到 /usr/share/dsg/configs/ 2. 验证 base、light、dark 三个配置均包含 32 个 key 3. 验证 light 配置与 base 一致,dark 配置暗色值正确
0034608 to
4b6551e
Compare
背景
DDE-330: 调色板类型值迁移到 dconfig 配置
将 dtkgui 中硬编码的 / / / 颜色值迁移到 dconfig 配置,使用 subpath(、)区分亮暗主题。
改动内容
新增 3 个 dsg.config.meta JSON 文件:
configs/org.deepin.dtk.palette.json— base,light 值作默认configs/light/org.deepin.dtk.palette.json— light,与 base 完全相同configs/dark/org.deepin.dtk.palette.json— dark,dark 值共 32 个 key(20 QPalette + 12 DPalette),每个 key 含 8 个必需字段(value / serial / name / name[zh_CN] / description / description[zh_CN] / permissions / visibility)。
所有非空 value 统一使用
#AARRGGBB八位格式(大写)。alpha 值按 C++double→int截断换算(如0.7×255=178→0xB2)。NoType 用空字符串""表示 invalid QColor。install 规则
无需修改
CMakeLists.txt或debian/libdtkdata.install,现有规则已递归覆盖子目录:CMakeLists.txt:install(DIRECTORY configs DESTINATION "share/dsg" FILES_MATCHING PATTERN "*")debian/libdtkdata.install:usr/share/dsg/configs/*验证
#AARRGGBB格式关联
Summary by Sourcery
Add dconfig palette metadata to provide configurable light and dark theme colors for DTK palettes.
New Features:
Enhancements: