Cherish:Battery light customization [2/2]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
|
||||
<string name="search">Search</string>
|
||||
<string name="search_apps">Search apps</string>
|
||||
|
||||
|
||||
<!-- Themeing -->
|
||||
<string name="dark_ui_mode_summary">Browse the dark theme options</string>
|
||||
<!-- [CHAR_LIMIT=NONE] Developer Settings: Title of the settings category for theme overlays. -->
|
||||
@@ -148,5 +148,16 @@
|
||||
|
||||
<!-- Custom Wi-Fi bar icons -->
|
||||
<string name="custom_wifi_bar_title">Wi-Fi</string>
|
||||
|
||||
<!-- Battery light -->
|
||||
<string name="battery_light_settings">Battery charging light</string>
|
||||
<string name="battery_light_enable">Enable</string>
|
||||
<string name="battery_light_allow_on_dnd_title">Battery light in Do Not Disturb mode</string>
|
||||
<string name="battery_light_low_blinking_title">Blinking light on low battery</string>
|
||||
<string name="battery_light_cat">Battery light color when charging</string>
|
||||
<string name="battery_light_low_color">Low battery</string>
|
||||
<string name="battery_light_medium_color">Medium battery</string>
|
||||
<string name="battery_light_full_color">Almost full battery</string>
|
||||
<string name="battery_light_reallyfull_color">Full (100) battery</string>
|
||||
|
||||
</resources>
|
||||
|
||||
59
res/xml/battery_light_settings.xml
Normal file
59
res/xml/battery_light_settings.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2017 The ABC rom
|
||||
|
||||
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"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="battery_light_enabled"
|
||||
android:title="@string/battery_light_enable"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="battery_light_allow_on_dnd"
|
||||
android:title="@string/battery_light_allow_on_dnd_title"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="battery_light_low_blinking"
|
||||
android:title="@string/battery_light_low_blinking_title"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="battery_light_cat"
|
||||
android:title="@string/battery_light_cat">
|
||||
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
||||
android:key="battery_light_low_color"
|
||||
android:title="@string/battery_light_low_color"
|
||||
android:defaultValue="0xFFFF0000" />
|
||||
|
||||
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
||||
android:key="battery_light_medium_color"
|
||||
android:title="@string/battery_light_medium_color"
|
||||
android:defaultValue="0xFFFFFF00" />
|
||||
|
||||
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
||||
android:key="battery_light_full_color"
|
||||
android:title="@string/battery_light_full_color"
|
||||
android:defaultValue="0xFFFFFF00" />
|
||||
|
||||
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
||||
android:key="battery_light_reallyfull_color"
|
||||
android:title="@string/battery_light_reallyfull_color"
|
||||
android:defaultValue="0xFF00FF00" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -42,5 +42,10 @@
|
||||
|
||||
</PreferenceCategory> -->
|
||||
|
||||
<Preference
|
||||
android:key="charging_light"
|
||||
android:fragment="com.cherish.settings.fragments.BatteryLightSettings"
|
||||
android:title="@string/battery_light_settings" />
|
||||
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
Reference in New Issue
Block a user