Skip to content

Commit 638bb1b

Browse files
18202781743yixinshark
authored andcommitted
fix: add DTK preference override configuration
1. Added installation of override configuration files in debian/dde- shell.install 2. Updated CMakeLists.txt to install DTK preference override configuration 3. Created new override file shell/overrides/ org.deepin.dtk.preference.json 4. The override file defines themeType configuration with proper metadata including Chinese translations Log: Added DTK preference override configuration for theme type settings Influence: 1. Verify that the override configuration file is properly installed to /usr/share/dsg/configs/overrides/org.deepin.dde.shell/ 2. Test that theme type configuration is available through DTK configuration system 3. Check that the themeType setting can be read and written correctly 4. Verify Chinese translations for configuration name and description 5. Ensure the configuration has proper permissions (readwrite) and visibility (public) 6. Test that the override doesn't break existing configuration loading fix: 添加DTK偏好设置覆盖配置 1. 在debian/dde-shell.install中添加覆盖配置文件的安装 2. 更新CMakeLists.txt以安装DTK偏好设置覆盖配置 3. 创建新的覆盖文件shell/overrides/org.deepin.dtk.preference.json 4. 覆盖文件定义了themeType配置,包含完整元数据和中文翻译 Log: 添加了主题类型设置的DTK偏好设置覆盖配置 Influence: 1. 验证覆盖配置文件是否正确安装到/usr/share/dsg/configs/overrides/ org.deepin.dde.shell/ 2. 测试主题类型配置是否可通过DTK配置系统访问 3. 检查themeType设置能否正确读写 4. 验证配置名称和描述的中文翻译 5. 确保配置具有正确的权限(读写)和可见性(公开) 6. 测试覆盖配置不会破坏现有的配置加载 PMS: BUG-345091
1 parent e25d7bb commit 638bb1b

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

debian/dde-shell.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ usr/share/dde-shell/org.deepin.ds.notification*/
2424
usr/share/dde-shell/org.deepin.ds.notificationcenter*/
2525
usr/share/dde-shell/org.deepin.ds.osd*/
2626
usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.dde.shell.json
27+
usr/share/dsg/configs/overrides/org.deepin.dde.shell/*
2728
usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.dde.shell.notification.json
2829
usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.ds.dde-apps.json
2930
usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.ds.dock.json

shell/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ install(TARGETS dde-shell DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
6565
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/[email protected] DESTINATION ${SYSTEMD_USER_UNIT_DIR})
6666
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/[email protected] DESTINATION ${SYSTEMD_USER_UNIT_DIR})
6767
dtk_add_config_meta_files(APPID org.deepin.dde.shell FILES org.deepin.dde.shell.json)
68+
dtk_add_config_override_files(APPID org.deepin.dde.shell META_NAME org.deepin.dtk.preference FILES overrides/org.deepin.dtk.preference.json)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"magic": "dsg.config.override",
3+
"version": "1.0",
4+
"contents": {
5+
"themeType": {
6+
"value": 0,
7+
"serial": 1,
8+
"flags": [],
9+
"name": "The application theme type",
10+
"name[zh_CN]": "应用主题的颜色",
11+
"description": "The application theme type, which can be set to follow the system theme (0), light theme (1), dark theme (2)",
12+
"description[zh_CN]": "应用主题的颜色,可以设置为跟随系统(0)、浅色(1)、 深色(2),默认为跟随系统",
13+
"permissions": "readwrite",
14+
"visibility": "public"
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)