diff options
Diffstat (limited to 'AriesParts/res')
-rw-r--r-- | AriesParts/res/drawable/color_tuning_preview.xml | 9 | ||||
-rw-r--r-- | AriesParts/res/layout/preference_dialog_color_tuning.xml | 92 | ||||
-rw-r--r-- | AriesParts/res/values/arrays.xml | 21 | ||||
-rw-r--r-- | AriesParts/res/values/strings.xml | 15 | ||||
-rw-r--r-- | AriesParts/res/xml/main.xml | 25 |
5 files changed, 162 insertions, 0 deletions
diff --git a/AriesParts/res/drawable/color_tuning_preview.xml b/AriesParts/res/drawable/color_tuning_preview.xml new file mode 100644 index 0000000..2d83c10 --- /dev/null +++ b/AriesParts/res/drawable/color_tuning_preview.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <gradient + android:angle="0" + android:startColor="#000000" + android:endColor="#FFFFFF" /> +</shape>
\ No newline at end of file diff --git a/AriesParts/res/layout/preference_dialog_color_tuning.xml b/AriesParts/res/layout/preference_dialog_color_tuning.xml new file mode 100644 index 0000000..f228541 --- /dev/null +++ b/AriesParts/res/layout/preference_dialog_color_tuning.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="utf-8"?> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:paddingBottom="20dip"> + + <TextView android:id="@+id/color_red_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/color_red_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/color_red_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <SeekBar android:id="@+id/color_red_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_red_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <TextView android:id="@+id/color_green_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/color_red_seekbar" + android:text="@string/color_green_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/color_green_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/color_red_seekbar" + android:layout_alignParentRight="true" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <SeekBar android:id="@+id/color_green_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_green_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <TextView android:id="@+id/color_blue_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_green_seekbar" + android:text="@string/color_blue_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/color_blue_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/color_green_seekbar" + android:layout_alignParentRight="true" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <SeekBar android:id="@+id/color_blue_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_blue_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <ImageView android:src="@drawable/color_tuning_preview" + android:layout_width="match_parent" + android:layout_height="40dip" + android:layout_below="@id/color_blue_seekbar" + android:paddingTop="20dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + </RelativeLayout> +</ScrollView>
\ No newline at end of file diff --git a/AriesParts/res/values/arrays.xml b/AriesParts/res/values/arrays.xml new file mode 100644 index 0000000..9053a71 --- /dev/null +++ b/AriesParts/res/values/arrays.xml @@ -0,0 +1,21 @@ +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string-array name="backlight_timeout_entries"> + <item>Default (1.6 seconds)</item> + <item>2 seconds</item> + <item>5 seconds</item> + <item>10 seconds</item> + <item>15 seconds</item> + <item>30 seconds</item> + <item>Never</item> + </string-array> + + <string-array name="backlight_timeout_entries_values" translatable="false"> + <item>1600</item> + <item>2000</item> + <item>5000</item> + <item>10000</item> + <item>15000</item> + <item>30000</item> + <item>-1</item> + </string-array> +</resources> diff --git a/AriesParts/res/values/strings.xml b/AriesParts/res/values/strings.xml new file mode 100644 index 0000000..d21d1a9 --- /dev/null +++ b/AriesParts/res/values/strings.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="app_name">Galaxy S Settings</string> + + <string name="category_screen_title">Screen</string> + <string name="color_tuning_title_head">Color Tuning</string> + <string name="color_tuning_summary_head">Calibrate screen color</string> + <string name="color_red_title">Red</string> + <string name="color_green_title">Green</string> + <string name="color_blue_title">Blue</string> + + <string name="category_touchkey_title">Touch Keys</string> + <string name="backlight_timeout_title_head">Backlight Timeout</string> + <string name="backlight_timeout_summary_head">Adjust the delay before the touch key backlight automatically turns off</string> +</resources> diff --git a/AriesParts/res/xml/main.xml b/AriesParts/res/xml/main.xml new file mode 100644 index 0000000..68938f4 --- /dev/null +++ b/AriesParts/res/xml/main.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <PreferenceCategory + android:title="@string/category_screen_title"> + <!-- Color tuning --> + <com.cyanogenmod.AriesParts.ColorTuningPreference + android:key="color_tuning" + android:title="@string/color_tuning_title_head" + android:summary="@string/color_tuning_summary_head" /> + </PreferenceCategory> + + <PreferenceCategory + android:title="@string/category_touchkey_title"> + <!-- Touch key backlight timeout --> + <ListPreference + android:key="backlight_timeout" + android:title="@string/backlight_timeout_title_head" + android:summary="@string/backlight_timeout_summary_head" + android:entries="@array/backlight_timeout_entries" + android:entryValues="@array/backlight_timeout_entries_values" + android:defaultValue="1600" /> + </PreferenceCategory> + +</PreferenceScreen> |