Fix new theme assets and resources
- Add a layout for popup for new theme - Change the color of language bar - Fix a drawable for settings feedback Change-Id: I7c0c9e238c8223554a62f7b0c8092d074cf9743fmain
parent
31adfa78e2
commit
8d3ca2fc44
Binary file not shown.
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 2.5 KiB |
|
@ -32,6 +32,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent"
|
||||
|
||||
latin:keyBackground="@drawable/btn_keyboard_key_gingerbread"
|
||||
latin:keyPreviewLayout="@layout/keyboard_key_preview"
|
||||
latin:popupLayout="@layout/keyboard_popup_keyboard"
|
||||
/>
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
<resources>
|
||||
<color name="candidate_normal">#FFFFFFFF</color>
|
||||
<color name="candidate_recommended">#FFF07020</color>
|
||||
<color name="candidate_other">#ffB05010</color>
|
||||
<color name="candidate_other">#ffD06015</color>
|
||||
<color name="latinkeyboard_transparent">#00000000</color>
|
||||
<color name="latinkeyboard_bar_language_shadow_white">#80000000</color>
|
||||
<color name="latinkeyboard_bar_language_shadow_black">#80FFFFFF</color>
|
||||
<color name="latinkeyboard_bar_language_text">#FF808080</color>
|
||||
<color name="latinkeyboard_bar_language_text">#FFC0C0C0</color>
|
||||
<color name="latinkeyboard_extension_background">#A0000000</color>
|
||||
<color name="latinkeyboard_text_color">#FF000000</color>
|
||||
<color name="latinkeyboard_feedback_language_text">#FFFFFFFF</color>
|
||||
<color name="latinkeyboard_key_color_white">#FFFFFFFF</color>
|
||||
<color name="latinkeyboard_key_color_black">#FF000000</color>
|
||||
</resources>
|
||||
|
|
|
@ -732,7 +732,7 @@ public class LatinKeyboard extends Keyboard {
|
|||
public void draw(Canvas canvas) {
|
||||
canvas.save();
|
||||
if (mHitThreshold) {
|
||||
mTextPaint.setColor(mRes.getColor(R.color.latinkeyboard_text_color));
|
||||
mTextPaint.setColor(mRes.getColor(R.color.latinkeyboard_feedback_language_text));
|
||||
canvas.clipRect(0, 0, mWidth, mHeight);
|
||||
if (mCurrentLanguage == null) {
|
||||
mCurrentLanguage = getInputLanguage(mWidth, mTextPaint);
|
||||
|
|
Loading…
Reference in New Issue