[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/values/custom_strings.xml b/res/values/custom_strings.xml
index e7fe400..6e9a6c1 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -217,6 +217,9 @@
<string name="status_bar_custom_header_title">Custom header image</string>
<string name="status_bar_custom_header_summary">Enable notification panel header image</string>
<string name="daylight_header_pack_title">Header image pack</string>
+ <string name="status_bar_custom_header_shadow_title">Header image shadow</string>
+ <string name="status_bar_custom_header_shadow_summary">For better visibility on bright images</string>
+ <string name="unit_percent">\u0025</string>
<!-- Network traffic -->
<string name="network_traffic_title">Network traffic</string>
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"