From 31adfa78e2edae188edb05e869f9f68798857582 Mon Sep 17 00:00:00 2001 From: satok Date: Wed, 1 Sep 2010 15:45:20 +0900 Subject: [PATCH] Add a new theme for Gingerbread bug: 2959293 Change-Id: I8aef19a7485ffd5639a177aee21103b3a1e04cf2 --- .../drawable/btn_keyboard_key_gingerbread.xml | 36 ++++++++++++++ java/res/layout/input_gingerbread.xml | 33 +++++++++++++ java/res/layout/input_gingerbread_popup.xml | 48 +++++++++++++++++++ java/res/values/colors.xml | 6 +-- java/res/values/strings.xml | 8 +++- java/res/xml/prefs.xml | 2 +- .../inputmethod/latin/KeyboardSwitcher.java | 6 +-- 7 files changed, 130 insertions(+), 9 deletions(-) create mode 100644 java/res/drawable/btn_keyboard_key_gingerbread.xml create mode 100755 java/res/layout/input_gingerbread.xml create mode 100755 java/res/layout/input_gingerbread_popup.xml diff --git a/java/res/drawable/btn_keyboard_key_gingerbread.xml b/java/res/drawable/btn_keyboard_key_gingerbread.xml new file mode 100644 index 000000000..24a547974 --- /dev/null +++ b/java/res/drawable/btn_keyboard_key_gingerbread.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + diff --git a/java/res/layout/input_gingerbread.xml b/java/res/layout/input_gingerbread.xml new file mode 100755 index 000000000..8f59cae21 --- /dev/null +++ b/java/res/layout/input_gingerbread.xml @@ -0,0 +1,33 @@ + + + + diff --git a/java/res/layout/input_gingerbread_popup.xml b/java/res/layout/input_gingerbread_popup.xml new file mode 100755 index 000000000..0f0f080b5 --- /dev/null +++ b/java/res/layout/input_gingerbread_popup.xml @@ -0,0 +1,48 @@ + + + + + + + diff --git a/java/res/values/colors.xml b/java/res/values/colors.xml index 343a9405d..5ca96241e 100644 --- a/java/res/values/colors.xml +++ b/java/res/values/colors.xml @@ -18,9 +18,9 @@ */ --> - #FF000000 - #FFE35900 - #ff808080 + #FFFFFFFF + #FFF07020 + #ffB05010 #00000000 #80000000 #80FFFFFF diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index ef5127e9d..09521146f 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -337,17 +337,20 @@ Help improve this input method editor by automatically sending usage statistics and crash reports to Google. + Keyboard Theme Basic Basic (High Contrast) - Default (bold) - Default (normal) + Stone (bold) + Stone (normal) + Gingerbread @string/layout_basic @string/layout_high_contrast @string/layout_stone_normal @string/layout_stone_bold + @string/layout_gingerbread @@ -355,6 +358,7 @@ 1 2 3 + 4 keyboard diff --git a/java/res/xml/prefs.xml b/java/res/xml/prefs.xml index c4ffeefce..a3c956e71 100644 --- a/java/res/xml/prefs.xml +++ b/java/res/xml/prefs.xml @@ -67,7 +67,7 @@ android:persistent="true" android:entryValues="@array/keyboard_layout_modes_values" android:entries="@array/keyboard_layout_modes" - android:defaultValue="3" + android:defaultValue="4" />