Added desktop theme policy

This commit is contained in:
Valentin Sokolov 2023-08-08 17:50:02 +04:00
parent 1fca6f48ae
commit 5e08443fe0
3 changed files with 91 additions and 2 deletions

View File

@ -379,6 +379,51 @@
</boolean>
</elements>
</policy>
<policy name="kde-desktoptheme" class="User" displayName="$(string.kde-desktoptheme)"
explainText="$(string.kde-desktoptheme_help)"
presentation="$(presentation.kde-desktoptheme-user-pr)"
key="Software\BaseALT\Policies\KDE">
<parentCategory ref="system:ALT_Appearance_KDE" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="kde-desktoptheme-setter" valueName="plasmarc.Desktoptheme" required="true">
<item displayName="$(string.kde-desktoptheme-default)">
<value>
<string>{"Theme":{"name":"default"}}</string>
</value>
</item>
<item displayName="$(string.kde-desktoptheme-breeze-light)">
<value>
<string>{"Theme":{"name":"breeze-light"}}</string>
</value>
</item>
<item displayName="$(string.kde-desktoptheme-breeze-dark)">
<value>
<string>{"Theme":{"name":"breeze-dark"}}</string>
</value>
</item>
<item displayName="$(string.kde-desktoptheme-oxygen)">
<value>
<string>{"Theme":{"name":"oxygen"}}</string>
</value>
</item>
<item displayName="$(string.kde-desktoptheme-air)">
<value>
<string>{"Theme":{"name":"air"}}</string>
</value>
</item>
</enum>
<boolean id="kde-desktoptheme_blocker" key="Software\BaseALT\Policies\KDELocks" valueName="plasmarc.Desktoptheme" >
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy name="kde-screenlocker" class="User" displayName="$(string.kde-screenlocker)"
explainText="$(string.kde-screenlocker_help)"
key="Software\BaseALT\Policies\KDE"

View File

@ -112,8 +112,8 @@ Automatically lock the screen when there is no activity for a certain time:
<string id="kde-desktops">Virtual desktops</string>
<string id="kde-desktops_help">This policy allows you to configure the number of virtual desktops. The number of tables can be from one to four inclusive.</string>
<string id="kde-filesearch-hidden">Indexing hidden files and folders</string>
<string id="kde-filesearch-hidden_help">The policy is an addition to the "Search for files" policy. Indexing of hidden folders and files in the system will be enabled only if this policy is enabled together with the "Search for files" policy. </string>
<string id="kde-wallpaper">Desktop background picture</string>
<string id="kde-wallpaper_help">This policy allows you to set images as your desktop background by specifying a file (eg /usr/share/wallpapers/table.png) containing the image.</string>
<string id="kde-graphic-effects">Graphic effects</string>
<string id="kde-graphic-effects_help">The policy configures enabling or disabling graphical effects on login.</string>
@ -194,6 +194,17 @@ If the policy is disabled, clicking on the file or folder will highlight it.
</string>
<string id="kde-desktoptheme">Desktop decoration</string>
<string id="kde-desktoptheme_help">This policy allows you to choose the appearance of the desktop. Valid parameter values:
- Default
- Breeze_dark
- Breeze-light
- Oxygen
- Air
</string>
<string id="kde-win-act-Click_to_focus">Click to focus</string>
<string id="kde-win-act-Click_to_focus_Mp">Click to focus (mouse precedence)</string>
<string id="kde-win-act-Focus_follows_mouse">Focus follows mouse</string>
@ -255,6 +266,12 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<string id="kde-screentimer-30">30 minutes</string>
<string id="kde-screentimer-60">60 minutes</string>
<string id="kde-desktoptheme-default">Default</string>
<string id="kde-desktoptheme-breeze-light">Breeze-light</string>
<string id="kde-desktoptheme-breeze-dark">Breeze-dark</string>
<string id="kde-desktoptheme-oxygen">Oxygen</string>
<string id="kde-desktoptheme-air">Air</string>
</stringTable>
<presentationTable>
<presentation id="kde-win-activate-user-pr">
@ -329,6 +346,11 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<checkBox refId="kde-background_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-desktoptheme-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-desktoptheme-setter">Desktop theme:</dropdownList>
<checkBox refId="kde-desktoptheme_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-screenlocker-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Automatically lock screen:</dropdownList>
<checkBox refId="kde-autolock_blocker">Block</checkBox>

View File

@ -194,6 +194,17 @@
</string>
<string id="kde-desktoptheme">Оформление рабочего стола</string>
<string id="kde-desktoptheme_help">Данная политика позволяет выбрать оформление рабочего стола. Допустимые значения параметра:
- Default
- Breeze_dark
- Breeze-light
- Oxygen
- Air
</string>
<string id="kde-win-act-Click_to_focus">Фокус по щелчку</string>
<string id="kde-win-act-Click_to_focus_Mp">Фокус по щелчку (приоритет мыши)</string>
<string id="kde-win-act-Focus_follows_mouse">Фокус следует за мышью</string>
@ -255,6 +266,12 @@
<string id="kde-screentimer-30">30 минут</string>
<string id="kde-screentimer-60">60 минут</string>
<string id="kde-desktoptheme-default">Default</string>
<string id="kde-desktoptheme-breeze-light">Breeze-light</string>
<string id="kde-desktoptheme-breeze-dark">Breeze-dark</string>
<string id="kde-desktoptheme-oxygen">Oxygen</string>
<string id="kde-desktoptheme-air">Air</string>
</stringTable>
<presentationTable>
<presentation id="kde-win-activate-user-pr">
@ -329,6 +346,11 @@
<checkBox refId="kde-background_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation>
<presentation id="kde-desktoptheme-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-desktoptheme-setter">Тема оформления рабочего стола:</dropdownList>
<checkBox refId="kde-desktoptheme_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation>
<presentation id="kde-screenlocker-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Автоматически блокировать экран:</dropdownList>
<checkBox refId="kde-autolock_blocker">Блокировать</checkBox>