Settings: Add brightness slider styles [2/3]
Change-Id: Id6bae41a3aca86a2483fb57317a63f97dd61415a
diff --git a/res/values/leaf_arrays.xml b/res/values/leaf_arrays.xml
index 8ca7931..0a0615a 100644
--- a/res/values/leaf_arrays.xml
+++ b/res/values/leaf_arrays.xml
@@ -38,6 +38,19 @@
<item>1</item>
</string-array>
+ <!-- Brightness slider styles -->
+ <string-array name="brightness_slider_style_entries" translatable="false">
+ <item>@string/brightness_slider_style_default</item>
+ <item>@string/brightness_slider_style_filled</item>
+ <item>@string/brightness_slider_style_thin</item>
+ </string-array>
+
+ <string-array name="brightness_slider_style_values">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ </string-array>
+
<!-- QS tile shape -->
<string-array name="qs_tile_shape_entries">
<item>@string/qs_tile_round</item>
diff --git a/res/values/leaf_strings.xml b/res/values/leaf_strings.xml
index dd34818..6e471f2 100644
--- a/res/values/leaf_strings.xml
+++ b/res/values/leaf_strings.xml
@@ -61,6 +61,11 @@
<!-- QS auto brightness icon -->
<string name="qs_auto_brightness_title">Auto brightness icon</string>
<string name="qs_auto_brightness_summary">Show toggle for adaptive brightness near the slider</string>
+ <!-- Brightness slider styles -->
+ <string name="brightness_slider_style_title">Brightness slider style</string>
+ <string name="brightness_slider_style_default">Default</string>
+ <string name="brightness_slider_style_filled">Filled</string>
+ <string name="brightness_slider_style_thin">Thin</string>
<!-- Annoying Notifications -->
<string name="notification_sound_vib_screen_on_title">Annoying Notifications</string>
diff --git a/res/xml/qs_panel_settings.xml b/res/xml/qs_panel_settings.xml
index f43034b..7e3d769 100644
--- a/res/xml/qs_panel_settings.xml
+++ b/res/xml/qs_panel_settings.xml
@@ -37,6 +37,13 @@
android:entryValues="@array/qs_brightness_slider_position_values"
android:defaultValue="0" />
+ <com.android.settings.support.SecureSettingListPreference
+ android:key="brightness_slider_style"
+ android:title="@string/brightness_slider_style_title"
+ android:entries="@array/brightness_slider_style_entries"
+ android:entryValues="@array/brightness_slider_style_values"
+ android:defaultValue="0" />
+
<com.android.settings.support.SecureSettingSwitchPreference
android:key="qs_show_auto_brightness"
android:title="@string/qs_auto_brightness_title"