Cherish:Add support for system theming [2/3]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
vjspranav
2022-10-09 16:05:29 +07:00
committed by Hưng Phan
parent 175ef484d5
commit 1de4422338
3 changed files with 29 additions and 0 deletions

View File

@@ -568,4 +568,17 @@
<item>6</item>
<item>7</item>
</string-array>
<string-array name="custom_theme_entries" translatable="false">
<item>@string/custom_theme_default</item>
<item>@string/custom_theme_black</item>
<item>@string/custom_theme_clear</item>
<item>@string/custom_theme_vivid</item>
</string-array>
<string-array name="custom_theme_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
</resources>

View File

@@ -784,4 +784,12 @@
<string name="power_menu_transparency">Power/reboot menu opacity</string>
<string name="power_menu_dialog_dim">Power/reboot dialog dim background amount</string>
<!-- Black theme -->
<string name="custom_theme_title">Use Custom theme</string>
<string name="custom_theme_summary">Force custom background colors</string>
<string name="custom_theme_default">Default</string>
<string name="custom_theme_black">Black</string>
<string name="custom_theme_clear">Clear</string>
<string name="custom_theme_vivid">Vivid(Monet)</string>
</resources>

View File

@@ -73,6 +73,14 @@
android:summary="@string/monet_engine_settings_summary"
android:fragment="com.cherish.settings.fragments.MonetEngineSettings" />
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="system_custom_theme"
android:title="@string/custom_theme_title"
android:summary="@string/custom_theme_summary"
android:defaultValue="0"
android:entries="@array/custom_theme_entries"
android:entryValues="@array/custom_theme_values" />
<!-- Font style -->
<Preference
android:key="android.theme.customization.font"