diff options
author | 2011-08-26 15:13:30 +0900 | |
---|---|---|
committer | 2011-08-26 18:55:36 +0900 | |
commit | c04bbc1ae9be81d25a356407c27a8e7fa22028bf (patch) | |
tree | 9091618999ca52760809337be5913a3e6dca3168 /java/res | |
parent | de4e8dedccc7b6db6df4c3f75d9f2458432c558a (diff) | |
download | latinime-c04bbc1ae9be81d25a356407c27a8e7fa22028bf.tar.gz latinime-c04bbc1ae9be81d25a356407c27a8e7fa22028bf.tar.xz latinime-c04bbc1ae9be81d25a356407c27a8e7fa22028bf.zip |
Fix "touch to save" colors
Bug: 5218662
Change-Id: I094b2ceb7438148eb5bdf620b188f598e8442a07
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/drawable-hdpi/keyboard_popup_panel_background_holo.9.png | bin | 4047 -> 0 bytes | |||
-rw-r--r-- | java/res/drawable-mdpi/keyboard_popup_panel_background_holo.9.png | bin | 3730 -> 0 bytes | |||
-rw-r--r-- | java/res/layout/candidates_strip.xml | 31 | ||||
-rw-r--r-- | java/res/values/styles.xml | 89 |
4 files changed, 71 insertions, 49 deletions
diff --git a/java/res/drawable-hdpi/keyboard_popup_panel_background_holo.9.png b/java/res/drawable-hdpi/keyboard_popup_panel_background_holo.9.png Binary files differdeleted file mode 100644 index 4002dbe65..000000000 --- a/java/res/drawable-hdpi/keyboard_popup_panel_background_holo.9.png +++ /dev/null diff --git a/java/res/drawable-mdpi/keyboard_popup_panel_background_holo.9.png b/java/res/drawable-mdpi/keyboard_popup_panel_background_holo.9.png Binary files differdeleted file mode 100644 index 7be7ab7e2..000000000 --- a/java/res/drawable-mdpi/keyboard_popup_panel_background_holo.9.png +++ /dev/null diff --git a/java/res/layout/candidates_strip.xml b/java/res/layout/candidates_strip.xml index bcc1322b6..46cd691a7 100644 --- a/java/res/layout/candidates_strip.xml +++ b/java/res/layout/candidates_strip.xml @@ -25,35 +25,6 @@ <LinearLayout android:id="@+id/candidates_strip" android:orientation="horizontal" - android:layout_weight="1.0" - android:layout_width="0dp" - android:layout_height="match_parent" /> - <LinearLayout - android:id="@+id/touch_to_save" - android:orientation="horizontal" android:layout_width="match_parent" - android:layout_height="match_parent" - android:visibility="gone" - > - <Button - android:id="@+id/word_to_save" - android:layout_weight="1.0" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_gravity="center_vertical" - android:textSize="@dimen/candidate_text_size" - android:singleLine="true" - android:ellipsize="middle" - style="?attr/suggestionBackgroundStyle" /> - <include - layout="@layout/candidate_divider" /> - <TextView - android:layout_weight="2.0" - android:layout_width="0dp" - android:layout_height="match_parent" - android:gravity="left|center_vertical" - android:text="@string/hint_add_to_dictionary" - android:textSize="@dimen/candidate_text_size" - android:background="@null" /> - </LinearLayout> + android:layout_height="match_parent" /> </merge> diff --git a/java/res/values/styles.xml b/java/res/values/styles.xml index cb9edb0b8..7936f3c3c 100644 --- a/java/res/values/styles.xml +++ b/java/res/values/styles.xml @@ -29,7 +29,8 @@ <item name="maxPopupKeyboardColumn">@integer/config_max_popup_keyboard_column</item> </style> <style name="LatinKeyboard"> - <item name="autoCorrectionSpacebarLedEnabled">@bool/config_auto_correction_spacebar_led_enabled</item> + <item name="autoCorrectionSpacebarLedEnabled">@bool/config_auto_correction_spacebar_led_enabled + </item> <item name="spacebarTextColor">#FFC0C0C0</item> <item name="spacebarTextShadowColor">#80000000</item> </style> @@ -66,7 +67,10 @@ <item name="shadowRadius">2.75</item> <item name="backgroundDimAmount">0.5</item> </style> - <style name="PopupMiniKeyboardView" parent="KeyboardView"> + <style + name="PopupMiniKeyboardView" + parent="KeyboardView" + > <item name="keyBackground">@drawable/btn_keyboard_key_popup</item> <item name="verticalCorrection">@dimen/mini_keyboard_vertical_correction</item> </style> @@ -84,7 +88,10 @@ <style name="SuggestionPreviewBackgroundStyle"> <item name="android:background">@drawable/candidate_feedback_background</item> </style> - <style name="CandidateViewStyle" parent="SuggestionsStripBackgroundStyle"> + <style + name="CandidateViewStyle" + parent="SuggestionsStripBackgroundStyle" + > <item name="suggestionStripOption">autoCorrectBold</item> <item name="colorTypedWord">#FFFFFFFF</item> <item name="colorAutoCorrect">#FFFCAE00</item> @@ -93,23 +100,35 @@ <item name="centerCandidatePercentile">@integer/center_candidate_percentile</item> </style> <!-- Theme "Basic high contrast" --> - <style name="KeyboardView.HighContrast" parent="KeyboardView"> + <style + name="KeyboardView.HighContrast" + parent="KeyboardView" + > <item name="android:background">@android:color/black</item> <item name="keyBackground">@drawable/btn_keyboard_key3</item> </style> <!-- Theme "Stone" --> - <style name="Keyboard.Stone" parent="Keyboard"> + <style + name="Keyboard.Stone" + parent="Keyboard" + > <item name="keyboardHeight">@dimen/keyboardHeight_stone</item> <item name="keyboardTopPadding">@fraction/keyboard_top_padding_stone</item> <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_stone</item> <item name="horizontalGap">@fraction/key_horizontal_gap_stone</item> <item name="verticalGap">@fraction/key_bottom_gap_stone</item> </style> - <style name="LatinKeyboard.Stone" parent="LatinKeyboard"> + <style + name="LatinKeyboard.Stone" + parent="LatinKeyboard" + > <item name="spacebarTextColor">#FF000000</item> <item name="spacebarTextShadowColor">#D0FFFFFF</item> </style> - <style name="KeyboardView.Stone" parent="KeyboardView"> + <style + name="KeyboardView.Stone" + parent="KeyboardView" + > <item name="keyBackground">@drawable/btn_keyboard_key_stone</item> <item name="keyTextColor">#FF000000</item> <item name="keyTextInactivatedColor">#FF808080</item> @@ -119,39 +138,63 @@ <item name="keyUppercaseLetterActivatedColor">#CC000000</item> <item name="shadowColor">#FFFFFFFF</item> </style> - <style name="PopupMiniKeyboardView.Stone" parent="PopupMiniKeyboardView"> + <style + name="PopupMiniKeyboardView.Stone" + parent="PopupMiniKeyboardView" + > <item name="keyBackground">@drawable/btn_keyboard_key_stone</item> <item name="keyTextColor">#FF000000</item> <item name="shadowColor">#FFFFFFFF</item> </style> <!-- Theme "Stone bold" --> - <style name="KeyboardView.Stone.Bold" parent="KeyboardView.Stone"> + <style + name="KeyboardView.Stone.Bold" + parent="KeyboardView.Stone" + > <item name="keyTextStyle">bold</item> </style> <!-- Theme "Gingerbread" --> - <style name="Keyboard.Gingerbread" parent="Keyboard"> + <style + name="Keyboard.Gingerbread" + parent="Keyboard" + > <item name="horizontalGap">@fraction/key_horizontal_gap_gb</item> <item name="verticalGap">@fraction/key_bottom_gap_gb</item> </style> - <style name="KeyboardView.Gingerbread" parent="KeyboardView"> + <style + name="KeyboardView.Gingerbread" + parent="KeyboardView" + > <item name="android:background">@drawable/keyboard_dark_background</item> <item name="keyBackground">@drawable/btn_keyboard_key_gingerbread</item> <item name="keyTextStyle">bold</item> </style> - <style name="PopupMiniKeyboardView.Gingerbread" parent="PopupMiniKeyboardView"> + <style + name="PopupMiniKeyboardView.Gingerbread" + parent="PopupMiniKeyboardView" + > <item name="android:background">@null</item> </style> <!-- Theme "IceCreamSandwich" --> - <style name="Keyboard.IceCreamSandwich" parent="Keyboard" > + <style + name="Keyboard.IceCreamSandwich" + parent="Keyboard" + > <item name="keyboardTopPadding">@fraction/keyboard_top_padding_ics</item> <item name="keyboardBottomPadding">@fraction/keyboard_bottom_padding_ics</item> <item name="horizontalGap">@fraction/key_horizontal_gap_ics</item> <item name="verticalGap">@fraction/key_bottom_gap_ics</item> </style> - <style name="LatinKeyboard.IceCreamSandwich" parent="LatinKeyboard"> + <style + name="LatinKeyboard.IceCreamSandwich" + parent="LatinKeyboard" + > <item name="disabledShortcutIcon">@drawable/sym_keyboard_voice_off_holo</item> </style> - <style name="KeyboardView.IceCreamSandwich" parent="KeyboardView"> + <style + name="KeyboardView.IceCreamSandwich" + parent="KeyboardView" + > <item name="android:background">@drawable/keyboard_background_holo</item> <item name="keyBackground">@drawable/btn_keyboard_key_ics</item> <item name="keyTextStyle">bold</item> @@ -169,7 +212,10 @@ <item name="shadowColor">#00000000</item> <item name="shadowRadius">0.0</item> </style> - <style name="PopupMiniKeyboardView.IceCreamSandwich" parent="PopupMiniKeyboardView"> + <style + name="PopupMiniKeyboardView.IceCreamSandwich" + parent="PopupMiniKeyboardView" + > <item name="android:background">@null</item> <item name="keyBackground">@drawable/btn_keyboard_key_popup_ics</item> </style> @@ -184,10 +230,15 @@ <style name="SuggestionBackgroundStyle.IceCreamSandwich"> <item name="android:background">@drawable/btn_candidate_ics</item> </style> - <style name="SuggestionPreviewBackgroundStyle.IceCreamSandwich"> - <item name="android:background">@drawable/keyboard_popup_panel_background_holo</item> + <style + name="SuggestionPreviewBackgroundStyle.IceCreamSandwich" + parent="PopupMiniKeyboardPanelStyle.IceCreamSandwich" + > </style> - <style name="CandidateViewStyle.IceCreamSandwich" parent="SuggestionsStripBackgroundStyle.IceCreamSandwich"> + <style + name="CandidateViewStyle.IceCreamSandwich" + parent="SuggestionsStripBackgroundStyle.IceCreamSandwich" + > <item name="suggestionStripOption">autoCorrectBold|validTypedWordBold</item> <item name="colorTypedWord">#FFBCBEC0</item> <item name="colorAutoCorrect">#FF0099CC</item> |