[2/2] OmniGears: configure SystemUI theme

allow to force light or dark or use the wallpaper based
automatic selection

Change-Id: Icd3f7970519c319e0fe182a7669216b6761438ad
diff --git a/res/values/custom_arrays.xml b/res/values/custom_arrays.xml
index eff5300..a8f0951 100644
--- a/res/values/custom_arrays.xml
+++ b/res/values/custom_arrays.xml
@@ -461,4 +461,16 @@
         <item>6</item>
         <!--<item>1</item>-->
     </string-array>
+
+    <string-array name="systemui_theme_style_entries" translatable="false">
+        <item>@string/systemui_theme_style_auto</item>
+        <item>@string/systemui_theme_style_light</item>
+        <item>@string/systemui_theme_style_dark</item>
+    </string-array>
+
+    <string-array name="systemui_theme_style_values" translatable="false">
+        <item>0</item>
+        <item>1</item>
+        <item>2</item>
+    </string-array>
 </resources>
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index 88184ae..db487fd 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -610,4 +610,9 @@
     <string name="show_dashboard_columns_summary">In settings main page</string>
     <string name="hide_dashboard_summary_title">Hide summary</string>
     <string name="hide_dashboard_summary_summary">In settings main page</string>
+
+    <string name="systemui_theme_style_title">SystemUI style</string>
+    <string name="systemui_theme_style_auto">Wallpaper based</string>
+    <string name="systemui_theme_style_light">Light style</string>
+    <string name="systemui_theme_style_dark">Dark style</string>
 </resources>
diff --git a/res/xml/style_settings.xml b/res/xml/style_settings.xml
index 94c25df..af018ae 100644
--- a/res/xml/style_settings.xml
+++ b/res/xml/style_settings.xml
@@ -30,8 +30,16 @@
                     android:targetPackage="org.omnirom.omnistyle"
                     android:targetClass="org.omnirom.omnistyle.BrowseWallsActivity" />
         </Preference>
+
+        <ListPreference
+            android:key="systemui_theme_style"
+            android:title="@string/systemui_theme_style_title"
+            android:persistent="false"
+            android:entries="@array/systemui_theme_style_entries"
+            android:entryValues="@array/systemui_theme_style_values" />
+
     </PreferenceCategory>
-    
+
     <PreferenceCategory
         android:key="category_custom_header"
         android:title="@string/custom_header_title">