Change keyboard colors in night theme

This commit is contained in:
Alexander Sytnyk 2018-02-19 17:57:21 +02:00
parent 84b552d888
commit a7cf895431
3 changed files with 16 additions and 5 deletions

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<nine-patch android:src="@drawable/bg_contextmenu_shadow_top_light" />
</item>
<item>
<shape>
<solid android:color="@color/ctx_menu_buttons_divider_dark" />
</shape>
</item>
</layer-list>

View file

@ -280,17 +280,17 @@
<color name="keyboard_item_divider_control_color_light">#727272</color> <color name="keyboard_item_divider_control_color_light">#727272</color>
<color name="keyboard_item_divider_control_color_light_pressed">#ffffff</color> <color name="keyboard_item_divider_control_color_light_pressed">#ffffff</color>
<color name="keyboard_item_divider_control_color_dark">#8899a6</color> <color name="keyboard_item_divider_control_color_dark">#727272</color>
<color name="keyboard_item_text_color_light">#333333</color> <color name="keyboard_item_text_color_light">#333333</color>
<color name="keyboard_item_text_color_light_pressed">#ffffff</color> <color name="keyboard_item_text_color_light_pressed">#ffffff</color>
<color name="keyboard_item_text_color_dark">#ffffff</color> <color name="keyboard_item_text_color_dark">#cccccc</color>
<color name="keyboard_item_light_bg">#fff</color> <color name="keyboard_item_light_bg">#fff</color>
<color name="keyboard_item_light_bg_pressed">#536dfe</color> <color name="keyboard_item_light_bg_pressed">#536dfe</color>
<color name="keyboard_item_dark_bg">#1f2326</color> <color name="keyboard_item_dark_bg">#17191a</color>
<color name="keyboard_item_dark_bg_pressed">#536dfe</color> <color name="keyboard_item_dark_bg_pressed">#536dfe</color>
<color name="keyboard_item_control_light_bg">#f2f2f2</color> <color name="keyboard_item_control_light_bg">#f2f2f2</color>
<color name="keyboard_item_control_light_bg_pressed">#536dfe</color> <color name="keyboard_item_control_light_bg_pressed">#536dfe</color>
<color name="keyboard_item_control_dark_bg">#191c1e</color> <color name="keyboard_item_control_dark_bg">#222526</color>
<color name="keyboard_item_control_dark_bg_pressed">#536dfe</color> <color name="keyboard_item_control_dark_bg_pressed">#536dfe</color>
<color name="keyboard_item_add_button_light_bg">#536dfe</color> <color name="keyboard_item_add_button_light_bg">#536dfe</color>
<color name="keyboard_item_add_button_light_bg_pressed">#4b62e3</color> <color name="keyboard_item_add_button_light_bg_pressed">#4b62e3</color>

View file

@ -291,7 +291,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
} }
}); });
mainView.findViewById(R.id.keyboard_layout).setBackgroundResource(lightTheme ? R.drawable.bg_bottom_menu_light : R.drawable.bg_bottom_menu_dark); mainView.findViewById(R.id.keyboard_layout).setBackgroundResource(lightTheme ? R.drawable.bg_bottom_menu_light : R.drawable.bg_coordinate_input_keyboard_dark);
Object[] keyboardItems = new Object[]{ Object[] keyboardItems = new Object[]{
"1", "2", "3", R.drawable.ic_keyboard_next_field, "1", "2", "3", R.drawable.ic_keyboard_next_field,