diff options
Diffstat (limited to 'GNexusParts/res')
-rwxr-xr-x | GNexusParts/res/drawable/blue_tuning_preview.xml | 9 | ||||
-rwxr-xr-x | GNexusParts/res/drawable/green_tuning_preview.xml | 9 | ||||
-rwxr-xr-x | GNexusParts/res/drawable/red_tuning_preview.xml | 9 | ||||
-rwxr-xr-x | GNexusParts/res/layout/preference_colorgamma_presets.xml | 120 | ||||
-rw-r--r-- | GNexusParts/res/layout/preference_dialog_color_tuning.xml | 31 | ||||
-rw-r--r-- | GNexusParts/res/layout/preference_dialog_gamma_tuning.xml | 31 | ||||
-rw-r--r-- | GNexusParts/res/values/strings.xml | 20 | ||||
-rwxr-xr-x | GNexusParts/res/xml/display_preferences.xml | 4 |
8 files changed, 229 insertions, 4 deletions
diff --git a/GNexusParts/res/drawable/blue_tuning_preview.xml b/GNexusParts/res/drawable/blue_tuning_preview.xml new file mode 100755 index 0000000..98ea313 --- /dev/null +++ b/GNexusParts/res/drawable/blue_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="#0000FF" /> +</shape>
\ No newline at end of file diff --git a/GNexusParts/res/drawable/green_tuning_preview.xml b/GNexusParts/res/drawable/green_tuning_preview.xml new file mode 100755 index 0000000..4f09471 --- /dev/null +++ b/GNexusParts/res/drawable/green_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="#00FF00" /> +</shape>
\ No newline at end of file diff --git a/GNexusParts/res/drawable/red_tuning_preview.xml b/GNexusParts/res/drawable/red_tuning_preview.xml new file mode 100755 index 0000000..a55ea12 --- /dev/null +++ b/GNexusParts/res/drawable/red_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="#FF0000" /> +</shape>
\ No newline at end of file diff --git a/GNexusParts/res/layout/preference_colorgamma_presets.xml b/GNexusParts/res/layout/preference_colorgamma_presets.xml new file mode 100755 index 0000000..bd50287 --- /dev/null +++ b/GNexusParts/res/layout/preference_colorgamma_presets.xml @@ -0,0 +1,120 @@ +<?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"> + + <ImageView + android:id="@+id/imageView0" + android:layout_width="match_parent" + android:layout_height="200dp" + android:paddingLeft="20dip" + android:paddingRight="20dip" + android:paddingTop="5dip" + android:src="@drawable/color_tuning_preview" /> + + <ImageView + android:id="@+id/imageView1" + android:layout_width="match_parent" + android:layout_height="50dp" + android:paddingLeft="20dip" + android:paddingRight="20dip" + android:paddingTop="5dip" + android:src="@drawable/red_tuning_preview" /> + + <ImageView + android:id="@+id/imageView2" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_below="@+id/imageView1" + android:paddingLeft="20dip" + android:paddingRight="20dip" + android:paddingTop="5dip" + android:src="@drawable/green_tuning_preview" /> + + <ImageView + android:id="@+id/imageView3" + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_below="@+id/imageView2" + android:paddingLeft="20dip" + android:paddingRight="20dip" + android:paddingTop="5dip" + android:src="@drawable/blue_tuning_preview" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@+id/imageView0" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <Button + android:id="@+id/btnPreset1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/preset1_default_title" android:textSize="10dp" android:width="100dp"/> + + <Button + android:id="@+id/btnPreset2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/preset2_default_title" android:textSize="10dp" android:width="100dp"/> + + <Button + android:id="@+id/btnPreset3" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/preset3_default_title" android:textSize="10dp" android:width="100dp"/> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <Button + android:id="@+id/btnPreset4" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/preset4_default_title" android:textSize="10dp" android:width="100dp"/> + + <Button + android:id="@+id/btnPreset5" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/preset5_default_title" android:textSize="10dp" android:width="100dp"/> + + <Button + android:id="@+id/btnPreset6" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/preset6_default_title" android:textSize="10dp" android:width="100dp"/> + </LinearLayout> + + <LinearLayout + android:layout_width="320dp" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <TextView + android:id="@+id/textView1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/credits_presets" android:textSize="12dp"/> + + </LinearLayout> + </LinearLayout> + + </RelativeLayout> + +</ScrollView> diff --git a/GNexusParts/res/layout/preference_dialog_color_tuning.xml b/GNexusParts/res/layout/preference_dialog_color_tuning.xml index 6154982..068f88c 100644 --- a/GNexusParts/res/layout/preference_dialog_color_tuning.xml +++ b/GNexusParts/res/layout/preference_dialog_color_tuning.xml @@ -80,7 +80,8 @@ android:paddingLeft="20dip" android:paddingRight="20dip" /> - <ImageView android:src="@drawable/color_tuning_preview" + <ImageView android:id="@+id/black_scale_picture_color" + android:src="@drawable/color_tuning_preview" android:layout_width="match_parent" android:layout_height="40dip" android:layout_below="@id/color_blue_seekbar" @@ -88,5 +89,31 @@ android:paddingLeft="20dip" android:paddingRight="20dip" /> + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/black_scale_picture_color" > + + <Button + android:id="@+id/btnColorDefault" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/color_default_title" /> + + <Button + android:id="@+id/btnColorCM" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/color_CM_title" /> + + <Button + android:id="@+id/btnColorDark" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/color_dark_title" /> + + </LinearLayout> + </RelativeLayout> -</ScrollView>
\ No newline at end of file +</ScrollView> diff --git a/GNexusParts/res/layout/preference_dialog_gamma_tuning.xml b/GNexusParts/res/layout/preference_dialog_gamma_tuning.xml index 3ece54b..110dc32 100644 --- a/GNexusParts/res/layout/preference_dialog_gamma_tuning.xml +++ b/GNexusParts/res/layout/preference_dialog_gamma_tuning.xml @@ -80,7 +80,8 @@ android:paddingLeft="20dip" android:paddingRight="20dip" /> - <ImageView android:src="@drawable/color_tuning_preview" + <ImageView android:id="@+id/black_scale_picture" + android:src="@drawable/color_tuning_preview" android:layout_width="match_parent" android:layout_height="40dip" android:layout_below="@id/gamma_blue_seekbar" @@ -88,5 +89,31 @@ android:paddingLeft="20dip" android:paddingRight="20dip" /> + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/black_scale_picture" > + + <Button + android:id="@+id/btnGammaDefault" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/gamma_default_title" /> + + <Button + android:id="@+id/btnGammaCM" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/gamma_CM_title" /> + + <Button + android:id="@+id/btnGammaBright" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/gamma_bright_title" /> + + </LinearLayout> + </RelativeLayout> -</ScrollView>
\ No newline at end of file +</ScrollView> diff --git a/GNexusParts/res/values/strings.xml b/GNexusParts/res/values/strings.xml index b629e90..43f27a5 100644 --- a/GNexusParts/res/values/strings.xml +++ b/GNexusParts/res/values/strings.xml @@ -12,9 +12,29 @@ <string name="color_tuning_summary_head">Calibrate multipliers screen color</string> <string name="gamma_tuning_title_head">Color Gamma Tuning</string> <string name="gamma_tuning_summary_head">Calibrate gamma color correction</string> + <string name="color_hack_presets_title_head">Color hack presets</string> + <string name="color_hack_presets_summary_head">Presets for gamma and multipliers tested by some users</string> <string name="color_red_title">Red</string> <string name="color_green_title">Green</string> <string name="color_blue_title">Blue</string> + <string name="gamma_default_title">Default</string> + <string name="gamma_CM_title">CM Sett.</string> + <string name="gamma_bright_title">Bright Sett.</string> + <string name="color_default_title">Default</string> + <string name="color_CM_title">CM Sett.</string> + <string name="color_dark_title">Dark Sett.</string> + + <string name="preset1_default_title">Default.</string> + <string name="preset2_default_title">Natural</string> + <string name="preset3_default_title">Dark Blue</string> + <string name="preset4_default_title">Warm</string> + <string name="preset5_default_title">Dark Cold</string> + <string name="preset6_default_title">Cross Proc.</string> + <string name="credits_presets">Credits: ale.landra91 cpaixao provolinoo</string> + + <string name="category_touchkey_title">Touch Keys</string> + <string name="touchkey_notification_title_head">Backlight Notifications</string> + <string name="touchkey_notification_summary_head">The touch key backlights will turn on when there is a notification.</string> <string name="category_radio_title">Radio</string> <string name="hspa_title_head">HSPA</string> diff --git a/GNexusParts/res/xml/display_preferences.xml b/GNexusParts/res/xml/display_preferences.xml index 9772b20..45795d1 100755 --- a/GNexusParts/res/xml/display_preferences.xml +++ b/GNexusParts/res/xml/display_preferences.xml @@ -11,5 +11,9 @@ android:key="gamma_tuning" android:title="@string/gamma_tuning_title_head" android:summary="@string/gamma_tuning_summary_head" /> + <com.cyanogenmod.settings.device.ColorHackPresets + android:key="color_presets" + android:title="@string/color_hack_presets_title_head" + android:summary="@string/color_hack_presets_summary_head" /> </PreferenceScreen> |