- 0: Gradient. - 1: Accent. - 2: Random. - 3: Custom. Signed-off-by: Aston-Martinn <advaithbhat9@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
56 lines
2.5 KiB
XML
56 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 TenX-OS
|
|
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
|
|
android:title="@string/keyguard_show_battery_title"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:ionionizer="http://schemas.android.com/apk/res-auto"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/on_aod_title">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="sysui_keyguard_show_battery_bar"
|
|
android:title="@string/keyguard_show_battery_title"
|
|
android:summary="@string/keyguard_show_battery_summary"
|
|
android:defaultValue="false" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="sysui_keyguard_show_battery_bar_always"
|
|
android:title="@string/keyguard_show_battery_always_title"
|
|
android:summary="@string/keyguard_show_battery_always_summary"
|
|
android:defaultValue="false" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/keygaurd_battery_bar_color_title">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingListPreference
|
|
android:key="keygaurd_battery_bar_color_mode"
|
|
android:title="@string/keyguard_battery_bar_color_modes_title"
|
|
android:entries="@array/keygaurd_battery_bar_color_modes_entries"
|
|
android:entryValues="@array/keygaurd_battery_bar_color_modes_values"
|
|
android:dependency="sysui_keyguard_show_battery_bar"
|
|
android:defaultValue="0" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="keygaurd_battery_bar_color_custom"
|
|
android:title="@string/keyguard_battery_bar_color_custom"
|
|
android:defaultValue="0xffffffff"
|
|
android:persistent="false" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|