diff --git a/debian/dde-shell.install b/debian/dde-shell.install index 9f7ee0f40..87dfdcde5 100644 --- a/debian/dde-shell.install +++ b/debian/dde-shell.install @@ -24,6 +24,7 @@ usr/share/dde-shell/org.deepin.ds.notification*/ usr/share/dde-shell/org.deepin.ds.notificationcenter*/ usr/share/dde-shell/org.deepin.ds.osd*/ usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.dde.shell.json +usr/share/dsg/configs/overrides/org.deepin.dde.shell/* usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.dde.shell.notification.json usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.ds.dde-apps.json usr/share/dsg/configs/org.deepin.dde.shell/org.deepin.ds.dock.json diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt index 46bb8a4cc..cb8e3cdd4 100644 --- a/shell/CMakeLists.txt +++ b/shell/CMakeLists.txt @@ -65,3 +65,4 @@ install(TARGETS dde-shell DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dde-shell@.service DESTINATION ${SYSTEMD_USER_UNIT_DIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dde-shell-plugin@.service DESTINATION ${SYSTEMD_USER_UNIT_DIR}) dtk_add_config_meta_files(APPID org.deepin.dde.shell FILES org.deepin.dde.shell.json) +dtk_add_config_override_files(APPID org.deepin.dde.shell META_NAME org.deepin.dtk.preference FILES overrides/org.deepin.dtk.preference.json) diff --git a/shell/overrides/org.deepin.dtk.preference.json b/shell/overrides/org.deepin.dtk.preference.json new file mode 100644 index 000000000..2a58d6427 --- /dev/null +++ b/shell/overrides/org.deepin.dtk.preference.json @@ -0,0 +1,17 @@ +{ + "magic": "dsg.config.override", + "version": "1.0", + "contents": { + "themeType": { + "value": 0, + "serial": 1, + "flags": [], + "name": "The application theme type", + "name[zh_CN]": "应用主题的颜色", + "description": "The application theme type, which can be set to follow the system theme (0), light theme (1), dark theme (2)", + "description[zh_CN]": "应用主题的颜色,可以设置为跟随系统(0)、浅色(1)、 深色(2),默认为跟随系统", + "permissions": "readwrite", + "visibility": "public" + } + } +}