Cherish: Add DU themes [3/3]

SDB: Adapt for AOSP Settings

Special Thanks to @imjyotiraditya for the help
This commit is contained in:
Mazda--
2020-01-20 10:27:44 +07:00
committed by Hung Phan
parent 2ac26d42c5
commit 362adb0b25
8 changed files with 206 additions and 1 deletions

View File

@@ -30,6 +30,13 @@
android:title="@string/quicksettings_title"
android:fragment="com.cherish.settings.fragments.QuickSettings"
android:icon="@drawable/ic_settings_quicksettings"/>
<!-- Themes -->
<Preference
android:key="theme_category"
android:title="@string/theme_title"
android:fragment="com.cherish.settings.fragments.ThemeSettings"
android:icon="@drawable/ic_settings_themes"/>
<!-- Buttons -->
<Preference

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/theme_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:key="system_theme_category"
android:title="@string/theme_type_title">
<ListPreference
android:key="theme_switch"
android:icon="@drawable/ic_system_theme"
android:title="@string/theme_type_title"
android:summary="@string/theme_type_summary"
android:dialogTitle="@string/theme_type_summary"
android:entries="@array/theme_type_titles"
android:entryValues="@array/theme_type_values"
android:defaultValue="1"/>
</PreferenceCategory>
</PreferenceScreen>