[2/2] OmniGears: add config to apply custom shadow on header images

To make text and status icons better visible with bright
images if required.

Change-Id: Idafa96bf1e07c91ef6e3e62efbe6aa505d9d9892
diff --git a/res/xml/bars_settings.xml b/res/xml/bars_settings.xml
index 12c196e..80bd7b2 100644
--- a/res/xml/bars_settings.xml
+++ b/res/xml/bars_settings.xml
@@ -71,15 +71,29 @@
             android:title="@string/notification_title" >
 
             <CheckBoxPreference
-                    android:key="status_bar_custom_header"
-                    android:title="@string/status_bar_custom_header_title"
-                    android:summary="@string/status_bar_custom_header_summary"
-                    android:defaultValue="false"/>
+                android:key="status_bar_custom_header"
+                android:title="@string/status_bar_custom_header_title"
+                android:summary="@string/status_bar_custom_header_summary"
+                android:defaultValue="false"
+                android:persistent="false" />
 
             <ListPreference
                 android:key="daylight_header_pack"
                 android:title="@string/daylight_header_pack_title"
-                android:persistent="false" />
+                android:persistent="false"
+                android:dependency="status_bar_custom_header" />
+
+            <com.android.settings.preference.SeekBarPreference
+                android:key="status_bar_custom_header_shadow"
+                android:title="@string/status_bar_custom_header_shadow_title"
+                android:summary="@string/status_bar_custom_header_shadow_summary"
+                android:defaultValue="0"
+                android:max="100"
+                settings:min="0"
+                settings:unitsLeft=""
+                settings:unitsRight="@string/unit_percent"
+                android:persistent="false"
+                android:dependency="status_bar_custom_header" />
 
             <PreferenceScreen
                     android:title="@string/quick_settings_title"