AquariOS:
Fixed color preferences to stick - @calebcabob
I'd like to thank and show respect to the following contributors for this
fantastic feature
Lokesh Chamane <lokesh.chamane@pac-rom.com>
SpiritCroc <spiritcroc@gmail.com>
westcripp <korukaltan@gmail.com>
commit fe5fa0cb0b74348d5e0e8172b17ab0f2d272dbf3
Author: Lokesh Chamane <lokesh.chamane@pac-rom.com>
Date: Thu Aug 4 23:37:17 2016 -0600
BatteryBar: Gradient Color [2/2]
Change-Id: If85baf2e724f9c6cdef868af323be039b47e49ad
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
commit 0f046e9887f547ff130a925d02d75d0a74b369f4
Author: SpiritCroc <spiritcroc@gmail.com>
Date: Mon May 2 02:52:00 2016 -0700
Battery bar enhancements [2/2]
Add color settings for charging & low battery
Add reversed alignment setting
Change-Id: I51f7e0499971ed344d8faa6e63d4f89558946cb7
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
commit be722a66ed4243831c48f45997a4cf1c442bc335
Author: westcripp <korukaltan@gmail.com>
Date: Sat Jan 10 04:14:45 2015 +0200
Settings: Add back batterybar [2/2]
Change-Id: I67b0a971fe9f0b6f5443d8ca7336d5e28e86bccd
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Change-Id: I4ad46c0e294b8fcf443926b5bb6d11930d981f91
@idoybh (DerpFest) edits:
* Improved and simplified the code
* Converted to a MasterSwitchPreference
* Added to settings search index
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
76 lines
3.4 KiB
XML
76 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Copyright (C) 2018 AospExtended ROM Project
|
|
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/battery_bar_title"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<ListPreference
|
|
android:key="battery_bar_list"
|
|
android:title="@string/sb_battery_bar_location"
|
|
android:entries="@array/battery_bar_entries"
|
|
android:entryValues="@array/battery_bar_values" />
|
|
|
|
<ListPreference
|
|
android:key="battery_bar_style"
|
|
android:title="@string/sb_battery_bar_style_title"
|
|
android:entries="@array/battery_bar_style_entries"
|
|
android:entryValues="@array/battery_bar_style_values" />
|
|
|
|
<com.cherish.settings.preferences.CustomSeekBarPreference
|
|
android:key="battery_bar_thickness"
|
|
android:title="@string/sb_battery_bar_thickness_title"
|
|
android:max="4"
|
|
settings:min="1"
|
|
settings:units="dp"
|
|
android:persistent="false" />
|
|
|
|
<SwitchPreference
|
|
android:key="battery_bar_animate"
|
|
android:title="@string/sb_battery_bar_animate_title"
|
|
android:summary="@string/sb_battery_bar_animate_summary" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="battery_bar_color"
|
|
android:title="@string/sb_battery_bar_color"
|
|
android:defaultValue="0xffffff" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="battery_bar_charging_color"
|
|
android:title="@string/sb_battery_bar_charging_color"
|
|
android:defaultValue="0xff00ff00" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="battery_bar_battery_low_color_warning"
|
|
android:title="@string/sb_battery_bar_battery_low_color"
|
|
android:defaultValue="0xffff6600" />
|
|
|
|
<SwitchPreference
|
|
android:key="battery_bar_use_gradient_color"
|
|
android:title="@string/sb_battery_bar_use_gradient_color"
|
|
android:summary="@string/sb_battery_bar_gradient_color_summary" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="battery_bar_low_color"
|
|
android:title="@string/sb_battery_bar_low_color"
|
|
android:dependency="battery_bar_use_gradient_color"
|
|
android:defaultValue="0xffff4400" />
|
|
|
|
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
|
android:key="battery_bar_high_color"
|
|
android:title="@string/sb_battery_bar_high_color"
|
|
android:dependency="battery_bar_use_gradient_color"
|
|
android:defaultValue="0xff99cc00" />
|
|
|
|
</PreferenceScreen>
|