Added background theme policy

This commit is contained in:
Valentin Sokolov 2023-08-07 19:13:55 +04:00
parent f1bdbf2012
commit 1fca6f48ae
3 changed files with 81 additions and 2 deletions

View File

@ -340,6 +340,45 @@
</boolean>
</elements>
</policy>
<policy name="kde-background" class="User" displayName="$(string.kde-background)"
explainText="$(string.kde-background_help)"
presentation="$(presentation.kde-background-user-pr)"
key="Software\BaseALT\Policies\KDE">
<parentCategory ref="system:ALT_Appearance_KDE" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="kde-background-setter" valueName="ksplashrc.Backgroung" required="true">
<item displayName="$(string.kde-background-breeze)">
<value>
<string>{"KDE":{"KSplash":"org.kde.breeze.desktop"}}</string>
</value>
</item>
<item displayName="$(string.kde-background-breeze-dark)">
<value>
<string>{"KDE":{"KSplash":"org.kde.breezedark.desktop"}}</string>
</value>
</item>
<item displayName="$(string.kde-background-oxygen)">
<value>
<string>{"KDE":{"KSplash":"org.kde.oxygen"}}</string>
</value>
</item>
<item displayName="$(string.kde-background-breezetwilight)">
<value>
<string>{"KDE":{"KSplash":"org.kde.breezetwilight.desktop"}}</string>
</value>
</item>
</enum>
<boolean id="kde-background_blocker" key="Software\BaseALT\Policies\KDELocks" valueName="ksplashrc.Backgroung" >
<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

@ -180,7 +180,17 @@ If the policy is disabled, clicking on the file or folder will highlight it.
- Oxygen
- Breeze
- Breeze_dark
- BreezeTwinlight
- BreezeTwilight
</string>
<string id="kde-background">Backgroung theme</string>
<string id="kde-background_help">This policy allows you to select a screensaver theme. Valid parameter values:
- Oxygen
- Breeze
- Breeze_dark
- BreezeTwilight
</string>
@ -228,6 +238,11 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<string id="kde-look-and-feel-oxygen">Oxygen</string>
<string id="kde-look-and-feel-breezetwilight">BreezeTwilight</string>
<string id="kde-background-breeze">Breeze</string>
<string id="kde-background-breeze-dark">Breeze-dark</string>
<string id="kde-background-oxygen">Oxygen</string>
<string id="kde-background-breezetwilight">BreezeTwilight</string>
<string id="kde-autolock-enabled">Enabled</string>
<string id="kde-autolock-disabled">Disabled</string>
@ -309,6 +324,11 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<checkBox refId="kde-look-and-feel_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-background-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-background-setter">Screensaver theme:</dropdownList>
<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-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

@ -180,7 +180,17 @@
- Oxygen
- Breeze
- Breeze_dark
- BreezeTwinlight
- BreezeTwilight
</string>
<string id="kde-background">Тема заставки</string>
<string id="kde-background_help">Данная политика позволяет выбрать тему заставки. Допустимые значения параметра:
- Oxygen
- Breeze
- Breeze_dark
- BreezeTwilight
</string>
@ -228,6 +238,11 @@
<string id="kde-look-and-feel-oxygen">Oxygen</string>
<string id="kde-look-and-feel-breezetwilight">BreezeTwilight</string>
<string id="kde-background-breeze">Breeze</string>
<string id="kde-background-breeze-dark">Breeze-dark</string>
<string id="kde-background-oxygen">Oxygen</string>
<string id="kde-background-breezetwilight">BreezeTwilight</string>
<string id="kde-autolock-enabled">Включено</string>
<string id="kde-autolock-disabled">Отключено</string>
@ -309,6 +324,11 @@
<checkBox refId="kde-look-and-feel_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation>
<presentation id="kde-background-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-background-setter">Тема заставки:</dropdownList>
<checkBox refId="kde-background_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>