diff --git a/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_dark.9.png b/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_dark.9.png
index 5014c9472f742abb9a86c744630fda65a1617fb7..c23d2c7086a29661e14de71d004b7750c443ebe3 100644
Binary files a/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_dark.9.png and b/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_dark.9.png differ
diff --git a/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_light.9.png b/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_light.9.png
index 79594c872438add36e3bec1e80a086bcb8471277..483779341ce78e583fac0c3c06b279ce2809eda4 100644
Binary files a/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_light.9.png and b/java/res/drawable-hdpi/btn_keyboard_key_normal_off_lxx_light.9.png differ
diff --git a/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_dark.9.png b/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_dark.9.png
index b1f5435486ceeee57d9e1848adef5e78faefdb4d..b1649d225e31813afabb1527c2a55414ab28e883 100644
Binary files a/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_dark.9.png and b/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_dark.9.png differ
diff --git a/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_light.9.png b/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_light.9.png
index f0a89c5246d1e75e158f1421653771e6ea9c23de..9111f3b01eea875cc8ec1779a63ec372a4bc792d 100644
Binary files a/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_light.9.png and b/java/res/drawable-hdpi/btn_keyboard_key_normal_on_lxx_light.9.png differ
diff --git a/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_dark.9.png b/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_dark.9.png
index bdf2e49f170c8530b1e8dd3d2bc9c079e7881dc6..a938c5df5eb28207b51f32b88e156f704c415a6c 100644
Binary files a/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_dark.9.png and b/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_dark.9.png differ
diff --git a/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_light.9.png b/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_light.9.png
index 80cf6fabadcf7fd3ee06595360c63ea4df03e1e3..98131618c5c278366645eec67b2bf8ede5c5c78b 100644
Binary files a/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_light.9.png and b/java/res/drawable-mdpi/btn_keyboard_key_normal_off_lxx_light.9.png differ
diff --git a/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_dark.9.png b/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_dark.9.png
index 5b23e22b425af0779d8d76018a48440d03949ad4..3485e71ee5bee0461a17df5d1105f5d6e2ac18d5 100644
Binary files a/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_dark.9.png and b/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_dark.9.png differ
diff --git a/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_light.9.png b/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_light.9.png
index 3323d2c7da66843b7368191c26be694f65108b4c..bdf6fd06d8f39ff1963182e65e1ea8540d71f7fb 100644
Binary files a/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_light.9.png and b/java/res/drawable-mdpi/btn_keyboard_key_normal_on_lxx_light.9.png differ
diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png
index 8709e63b28eef642ecb6c2c90c6e9d24b348038c..0fc3e7b31d3f44f349828d6a23be3dfd1deda848 100644
Binary files a/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png and b/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png differ
diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_light.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_light.9.png
index 98edd3706fc36688c7a380bd2d07ea046ec938b2..13756f802713e1e39e015fbbc10861d517b7eafb 100644
Binary files a/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_light.9.png and b/java/res/drawable-xhdpi/btn_keyboard_key_normal_off_lxx_light.9.png differ
diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png
index ea002f53bbd03636f4ad61ff67bbbfc815ab2a70..e69fca6f7cb917d1b22b5addfc9dca226d79fb56 100644
Binary files a/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png and b/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png differ
diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_light.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_light.9.png
index 5a950738770bb94eaab396b25630bbdb09d43529..2d5c700ce6127dc5a5a12ea35d0a8da627f3b28a 100644
Binary files a/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_light.9.png and b/java/res/drawable-xhdpi/btn_keyboard_key_normal_on_lxx_light.9.png differ
diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png
index f2b5e4c0ad1fd9e2596aba9b37e3575c888b010e..9b07eb2b82b60f4a8fc6e6a2cbb3aae5330a36e6 100644
Binary files a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png and b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png differ
diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png
index 265109d335cc310c920b74509105798fbd4b591c..bbcb8c902c696c9626dafaceaf7da195065de35a 100644
Binary files a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png and b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png differ
diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png
index 2166f62adee501107a81dbf95560b7667cab2a4e..b63772f2ebb1c344ae8ffc32e16e0e8e99d5e27a 100644
Binary files a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png and b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png differ
diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png
index 70346218f958d9384a09a6104d848a7db2cc0a7a..af5553fdede9cfa7e00bda767f83438fd2cc7105 100644
Binary files a/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png and b/java/res/drawable-xxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png differ
diff --git a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png
index 0b3d796e4303b8d32c8cbc72939af2c3354f40c8..05d31d9cec86e1d7134f0426f889ceab72888b3e 100644
Binary files a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png and b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_dark.9.png differ
diff --git a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png
index 6edd4e3d52213937a9060577a9e416c6fc353d5a..1114a26ebb8cc079ea6a158a8a7617b26e64693f 100644
Binary files a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png and b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_off_lxx_light.9.png differ
diff --git a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png
index 61a5efc2fc547e00556664f08140dc22e4010e0e..6b62ab8d51b52cf34949a2266292b545087aa8e2 100644
Binary files a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png and b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_dark.9.png differ
diff --git a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png
index c60a235478e6c05d8daab1c3ae7bee5cd5a2c446..24f6e30f9e1ce94c20148747add4a840b27fa476 100644
Binary files a/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png and b/java/res/drawable-xxxhdpi/btn_keyboard_key_normal_on_lxx_light.9.png differ
diff --git a/java/res/drawable/bg_btn_keyboard_key_normal_off.xml b/java/res/drawable/bg_btn_keyboard_key_normal_off.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1def20b12e846b5d7eefc49b1005872153f4ac92
--- /dev/null
+++ b/java/res/drawable/bg_btn_keyboard_key_normal_off.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
diff --git a/java/res/drawable/bg_btn_keyboard_key_normal_on.xml b/java/res/drawable/bg_btn_keyboard_key_normal_on.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0a57c54196c7c4fada3a3c6108f93f6608162ea8
--- /dev/null
+++ b/java/res/drawable/bg_btn_keyboard_key_normal_on.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
diff --git a/java/res/drawable/btn_keyboard_key_ics.xml b/java/res/drawable/btn_keyboard_key_ics.xml
index bacd5d78ffca1b1a96f34225791f90d8f5d0b1fe..f728c9ddfd33ff6eca7bc1af484b448347c52e26 100644
--- a/java/res/drawable/btn_keyboard_key_ics.xml
+++ b/java/res/drawable/btn_keyboard_key_ics.xml
@@ -23,13 +23,13 @@
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
-
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
-
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
-
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_on" />
+ android:drawable="@drawable/bg_btn_keyboard_key_normal_off" />
-
+
+
+
+
+
diff --git a/java/res/drawable/ic_arrow_back.xml b/java/res/drawable/ic_arrow_back.xml
new file mode 100644
index 0000000000000000000000000000000000000000..ddacaad9b5a25c3984a4e081cfb1c32f0572d665
--- /dev/null
+++ b/java/res/drawable/ic_arrow_back.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
diff --git a/java/res/layout/additional_subtype_dialog.xml b/java/res/layout/additional_subtype_dialog.xml
index 2de7d07a865a7c4b1d1fc2ae8173b8ec035b0320..024d96342b47f5d9a0b1e8a946f2d4034920f2d8 100644
--- a/java/res/layout/additional_subtype_dialog.xml
+++ b/java/res/layout/additional_subtype_dialog.xml
@@ -35,6 +35,7 @@
android:gravity="start|left"
android:textAlignment="viewStart"
style="?android:attr/textAppearanceSmall"
+ android:textColor="@color/color_default_primary_text"
android:text="@string/subtype_locale" />
+
+
+
diff --git a/java/res/layout/dictionary_line.xml b/java/res/layout/dictionary_line.xml
index bb1843d6c6e456abe75f1d3dd1f981dda5bddeec..5726e425cdb5683b685b7210175a86290c0ab377 100644
--- a/java/res/layout/dictionary_line.xml
+++ b/java/res/layout/dictionary_line.xml
@@ -89,6 +89,7 @@
android:layout_height="wrap_content"
android:layout_gravity="right|center_vertical"
android:singleLine="true"
+ android:background="@color/color_default_foreground"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/install_dict" />
diff --git a/java/res/layout/seek_bar_dialog.xml b/java/res/layout/seek_bar_dialog.xml
index e723ad9bb7f576822a56900d0da82c2ffb3b11bb..f61fb22dabe8de19a86eb562e24bb8ac8f258c11 100644
--- a/java/res/layout/seek_bar_dialog.xml
+++ b/java/res/layout/seek_bar_dialog.xml
@@ -33,6 +33,7 @@
diff --git a/java/res/values-night-v27/platform-theme.xml b/java/res/values-night-v27/platform-theme.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1df0a8661d40a84cde83c0cde63a4a746a501dad
--- /dev/null
+++ b/java/res/values-night-v27/platform-theme.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/java/res/values-v21/platform-theme.xml b/java/res/values-v27/platform-theme.xml
similarity index 64%
rename from java/res/values-v21/platform-theme.xml
rename to java/res/values-v27/platform-theme.xml
index 58763fbdde766bb63fc81387319778d53a2072ec..7eb83108803493508c98a23b7d2321d30e4a22f3 100644
--- a/java/res/values-v21/platform-theme.xml
+++ b/java/res/values-v27/platform-theme.xml
@@ -19,7 +19,12 @@
-->
-
-
-
+
+
diff --git a/java/res/values/colors.xml b/java/res/values/colors.xml
index 7b11cafcf49a6817d6ee60452c662b24c77cd476..fc5e9874853df46781a3f2ee19b6ed4f82e8a7cd 100644
--- a/java/res/values/colors.xml
+++ b/java/res/values/colors.xml
@@ -19,69 +19,78 @@
-->
+ @lineageos.platform:color/color_default_primary
+ @lineageos.platform:color/color_default_primary_dark
+ @lineageos.platform:color/color_default_background
+ @lineageos.platform:color/color_default_foreground
+ @lineageos.platform:color/color_default_divider
+ @lineageos.platform:color/color_default_primary_text
+ @lineageos.platform:color/color_default_secondary_text
+ @lineageos.platform:color/color_default_accent
+ @lineageos.platform:color/color_default_view_on_accent
- #FF33B5E5
- #D833B5E5
- #B233B5E5
- #9933B5E5
- @android:color/white
- #66E0E4E5
- #80000000
- #A0FFFFFF
- #66E0E4E5
- @android:color/white
- #FFC0C0C0
+ @color/color_default_accent
+ @color/color_default_accent
+ @color/color_default_primary_text
+ @color/color_default_secondary_text
+ @color/color_default_primary_text
+ @color/color_default_secondary_text
+ @color/color_default_secondary_text
+ @color/color_default_foreground
+ @color/color_default_secondary_text
+ @color/color_default_primary_text
+ @color/color_default_secondary_text
#80000000
- #C0000000
- #111111
+ @color/color_default_primary_dark
+ @color/color_default_foreground
- #FFF0F0F0
- #D8F0F0F0
- #B2F0F0F0
- #99E0E0E0
+ @color/color_default_accent
+ @color/color_default_accent
+ @color/color_default_primary_text
+ @color/color_default_secondary_text
- #37474F
- #CC37474F
- #B337474F
- #B337474F
- #B337474F
- @lineageos.platform:color/color_default_accent
- #37474F
- #D937474F
- #B337474F
- @lineageos.platform:color/color_default_accent
- @lineageos.platform:color/color_default_accent
- #ECEFF1
- #2637474F
- #2637474F
- #E6ECEFF1
- #E4E7E9
+ @color/color_default_primary_text
+ @color/color_default_primary_text
+ @color/color_default_secondary_text
+ @color/color_default_secondary_text
+ @color/color_default_secondary_text
+ @color/color_default_accent
+ @color/color_default_primary_text
+ @color/color_default_accent
+ @color/color_default_primary_text
+ @color/color_default_accent
+ @color/color_default_accent
+ @color/color_default_foreground
+ @color/color_default_primary_dark
+ @color/color_default_primary_dark
+ @color/color_default_primary_dark
+ @color/color_default_foreground
- #CCFFFFFF
- #CCFFFFFF
- #80FFFFFF
- #80FFFFFF
- #B3FFFFFF
- @lineageos.platform:color/color_default_accent
- #FFFFFF
- #D9FFFFFF
- #B3FFFFFF
- @lineageos.platform:color/color_default_accent
- @lineageos.platform:color/color_default_accent
- #263238
- #19FFFFFF
- #19FFFFFF
- #E621272B
- #21272B
+ @color/color_default_primary_text
+ @color/color_default_primary_text
+ @color/color_default_secondary_text
+ @color/color_default_secondary_text
+ @color/color_default_secondary_text
+ @color/color_default_accent
+ @color/color_default_primary_text
+ @color/color_default_accent
+ @color/color_default_primary_text
+ @color/color_default_accent
+ @color/color_default_accent
+ @color/color_default_foreground
+ @color/color_default_primary_dark
+ @color/color_default_primary_dark
+ @color/color_default_primary_dark
+ @color/color_default_foreground
- #FFEBEBEB
- #FF707070
- @lineageos.platform:color/color_default_accent
- @android:color/background_light
- #FFCCCCCC
+ @color/color_default_background
+ @color/color_default_primary_text
+ @color/color_default_accent
+ @color/color_default_foreground
+ @color/color_default_divider
- #FF607D8B
+ @color/color_default_accent
diff --git a/java/res/values/platform-theme.xml b/java/res/values/platform-theme.xml
index 2854ff72fde3d5b7dd370b1732ca73fad683eebb..046ff86c14aa51aa9a9b63bf878822cc38c048a7 100644
--- a/java/res/values/platform-theme.xml
+++ b/java/res/values/platform-theme.xml
@@ -19,7 +19,37 @@
-->
-
-
-
+
+
+
+
+
+
+
+
diff --git a/java/res/values/themes-ics.xml b/java/res/values/themes-ics.xml
index 1a15b0e9753f23de59352926cf1e74e7f04f2aa3..fae1f1427ee6db55052a1ed5ea6685b8025f0b7a 100644
--- a/java/res/values/themes-ics.xml
+++ b/java/res/values/themes-ics.xml
@@ -43,7 +43,7 @@
name="KeyboardView.ICS"
parent="KeyboardView.Holo"
>
- - @drawable/keyboard_background_holo
+ - @color/color_default_foreground
- @drawable/btn_keyboard_key_ics
- @drawable/btn_keyboard_key_functional_ics
- @drawable/btn_keyboard_spacebar_ics
@@ -54,7 +54,7 @@
- @color/key_hint_label_color_holo
- @color/key_shifted_letter_hint_inactivated_color_holo
- @color/key_shifted_letter_hint_activated_color_holo
- - @color/key_text_color_holo
+ - @color/color_default_view_on_accent
diff --git a/java/res/values/themes-klp.xml b/java/res/values/themes-klp.xml
index 32884dba011507146ba817ba52320f6a6e60ea8f..b7c3ec2b5de98961cfb988bc871b3878b3607042 100644
--- a/java/res/values/themes-klp.xml
+++ b/java/res/values/themes-klp.xml
@@ -43,7 +43,7 @@
name="KeyboardView.KLP"
parent="KeyboardView.Holo"
>
- - @drawable/keyboard_background_holo
+ - @color/color_default_foreground
- @drawable/btn_keyboard_key_klp
- @drawable/btn_keyboard_key_functional_klp
- @drawable/btn_keyboard_spacebar_klp
@@ -54,7 +54,7 @@
- @color/key_hint_label_color_holo
- @color/key_shifted_letter_hint_inactivated_color_holo
- @color/key_shifted_letter_hint_activated_color_holo
- - @color/key_text_color_holo
+ - @color/color_default_view_on_accent
diff --git a/java/res/values/themes-lxx-dark.xml b/java/res/values/themes-lxx-dark.xml
index cae1f7243822c41e16544ffd739994b375553dea..3c175ccf4a60cae6d7a717e2fb66cefa5336ba99 100644
--- a/java/res/values/themes-lxx-dark.xml
+++ b/java/res/values/themes-lxx-dark.xml
@@ -42,7 +42,7 @@
name="KeyboardView.LXX_Dark"
parent="KeyboardView.LXX"
>
- - @drawable/keyboard_background_lxx_dark
+ - @color/color_default_foreground
- @drawable/btn_keyboard_key_lxx_dark
- @drawable/btn_keyboard_key_functional_lxx_dark
- @drawable/btn_keyboard_spacebar_lxx_dark
@@ -53,7 +53,7 @@
- @color/key_text_inactive_color_lxx_dark
- @color/key_text_inactive_color_lxx_dark
- @color/key_text_color_lxx_dark
- - @color/key_text_color_lxx_dark
+ - @color/color_default_view_on_accent
diff --git a/java/res/values/themes-lxx-light.xml b/java/res/values/themes-lxx-light.xml
index eecd191a342584664653c4438f5121dbd1e7db46..924e08c6a992d35cbeea7df317a6621ad2b4e3aa 100644
--- a/java/res/values/themes-lxx-light.xml
+++ b/java/res/values/themes-lxx-light.xml
@@ -42,7 +42,7 @@
name="KeyboardView.LXX_Light"
parent="KeyboardView.LXX"
>
- - @drawable/keyboard_background_lxx_light
+ - @color/color_default_foreground
- @drawable/btn_keyboard_key_lxx_light
- @drawable/btn_keyboard_key_functional_lxx_light
- @drawable/btn_keyboard_spacebar_lxx_light
@@ -53,7 +53,7 @@
- @color/key_text_inactive_color_lxx_light
- @color/key_text_inactive_color_lxx_light
- @color/key_text_color_lxx_light
- - @color/key_text_color_lxx_light
+ - @color/color_default_view_on_accent
diff --git a/java/res/xml/prefs_screen_appearance.xml b/java/res/xml/prefs_screen_appearance.xml
index 036b66553cbb4e9c5e05e1a6765aca57e1a4c207..bafd0817dcb0a3ac69bfea4f463bf73d87476477 100644
--- a/java/res/xml/prefs_screen_appearance.xml
+++ b/java/res/xml/prefs_screen_appearance.xml
@@ -18,10 +18,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:key="screen_appearance"
android:title="@string/settings_screen_appearance">
-
{
}
public static void saveKeyboardThemeId(final int themeId, final SharedPreferences prefs) {
- prefs.edit().putString(LXX_KEYBOARD_THEME_KEY, Integer.toString(themeId)).apply();
+ prefs.edit().putString(LXX_KEYBOARD_THEME_KEY, Integer.toString(THEME_ID_AUTO_DARK)).apply();
}
public static KeyboardTheme getKeyboardTheme(final Context context) {
@@ -155,7 +155,7 @@ public final class KeyboardTheme implements Comparable {
/* package private for testing */
static KeyboardTheme getKeyboardTheme(final Context context, final int sdkVersion) {
- int themeId = getSelectedKeyboardThemeId(context);
+ int themeId = THEME_ID_AUTO_DARK;
if (THEME_ID_AUTO_DARK == themeId) {
Configuration cfg = context.getResources().getConfiguration();
int nightMode = cfg.uiMode & Configuration.UI_MODE_NIGHT_MASK;
diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewView.java b/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewView.java
index 24538605a4a4a403081f4bf122cd18464316ccd7..73935d262da8d2b20137f2752f5a8fef0f68530d 100644
--- a/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewView.java
+++ b/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewView.java
@@ -82,6 +82,7 @@ public class KeyPreviewView extends TextView {
return;
}
background.getPadding(mBackgroundPadding);
+ background.setTint(R.color.color_default_primary_dark);
final int maxWidth = background.getIntrinsicWidth() - mBackgroundPadding.left
- mBackgroundPadding.right;
final float width = getTextWidth(text, getPaint());
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 737bd0d3ece0d152741c63dea6660df3742f6b55..b3fb163155707f054b9777f8e3e112b56cb66e0b 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -111,6 +111,8 @@ import java.util.concurrent.TimeUnit;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
+import com.android.inputmethod.latin.R;
+
/**
* Input method implementation for Qwerty'ish keyboard.
*/
@@ -1869,8 +1871,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
}
};
- final AlertDialog.Builder builder = new AlertDialog.Builder(
- DialogUtils.getPlatformDialogThemeContext(this));
+ final AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.platformDialogTheme);
builder.setItems(items, listener).setTitle(title);
final AlertDialog dialog = builder.create();
dialog.setCancelable(true /* cancelable */);
diff --git a/java/src/com/android/inputmethod/latin/settings/AppearanceSettingsFragment.java b/java/src/com/android/inputmethod/latin/settings/AppearanceSettingsFragment.java
index 554edc85c9b412ed31e29cf50cf82e3457ee4251..80616f798eee42be46c865d532407cb0555d7e75 100644
--- a/java/src/com/android/inputmethod/latin/settings/AppearanceSettingsFragment.java
+++ b/java/src/com/android/inputmethod/latin/settings/AppearanceSettingsFragment.java
@@ -41,6 +41,5 @@ public final class AppearanceSettingsFragment extends SubScreenFragment {
super.onResume();
CustomInputStyleSettingsFragment.updateCustomInputStylesSummary(
findPreference(Settings.PREF_CUSTOM_INPUT_STYLES));
- ThemeSettingsFragment.updateKeyboardThemeSummary(findPreference(Settings.SCREEN_THEME));
}
}
diff --git a/java/src/com/android/inputmethod/latin/settings/CustomInputStylePreference.java b/java/src/com/android/inputmethod/latin/settings/CustomInputStylePreference.java
index 21ea8f85942145f39420937ff14fe17e13e10c8a..b4e172ff58bcd7a59e6ccf53b7c7892ceb8bbf45 100644
--- a/java/src/com/android/inputmethod/latin/settings/CustomInputStylePreference.java
+++ b/java/src/com/android/inputmethod/latin/settings/CustomInputStylePreference.java
@@ -282,7 +282,7 @@ final class CustomInputStylePreference extends DialogPreference
public SubtypeLocaleAdapter(final Context context) {
super(context, android.R.layout.simple_spinner_item);
- setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
+ setDropDownViewResource(R.layout.custom_spinner_dropdown_item);
final TreeSet items = new TreeSet<>();
final InputMethodInfo imi = RichInputMethodManager.getInstance()
@@ -324,7 +324,7 @@ final class CustomInputStylePreference extends DialogPreference
static final class KeyboardLayoutSetAdapter extends ArrayAdapter {
public KeyboardLayoutSetAdapter(final Context context) {
super(context, android.R.layout.simple_spinner_item);
- setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
+ setDropDownViewResource(R.layout.custom_spinner_dropdown_item);
final String[] predefinedKeyboardLayoutSet = context.getResources().getStringArray(
R.array.predefined_layouts);
diff --git a/java/src/com/android/inputmethod/latin/settings/CustomInputStyleSettingsFragment.java b/java/src/com/android/inputmethod/latin/settings/CustomInputStyleSettingsFragment.java
index 49628d51d91eed604f31afe618a8eaa07c4878d6..46076119677360dadc059081780c27232b2fb18a 100644
--- a/java/src/com/android/inputmethod/latin/settings/CustomInputStyleSettingsFragment.java
+++ b/java/src/com/android/inputmethod/latin/settings/CustomInputStyleSettingsFragment.java
@@ -229,8 +229,7 @@ public final class CustomInputStyleSettingsFragment extends CustomPreferenceFrag
private AlertDialog createDialog() {
final String imeId = mRichImm.getInputMethodIdOfThisIme();
- final AlertDialog.Builder builder = new AlertDialog.Builder(
- DialogUtils.getPlatformDialogThemeContext(getActivity()));
+ final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.platformDialogTheme);
builder.setTitle(R.string.custom_input_styles_title)
.setMessage(R.string.custom_input_style_note_message)
.setNegativeButton(R.string.not_now, null)
diff --git a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryAddWordFragment.java b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryAddWordFragment.java
index a8781d78670c9e1c8fe668f0d6232fc9e05d584a..5780f1e290ea03347438b516313d75118588d99a 100644
--- a/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryAddWordFragment.java
+++ b/java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryAddWordFragment.java
@@ -36,6 +36,8 @@ import android.widget.Spinner;
import java.util.ArrayList;
import java.util.Locale;
+import com.android.inputmethod.latin.R;
+
// Caveat: This class is basically taken from
// packages/apps/Settings/src/com/android/settings/inputmethod/UserDictionaryAddWordFragment.java
// in order to deal with some devices that have issues with the user dictionary handling
@@ -136,7 +138,7 @@ public class UserDictionaryAddWordFragment extends Fragment
(Spinner)mRootView.findViewById(R.id.user_dictionary_add_locale);
final ArrayAdapter adapter = new ArrayAdapter<>(
getActivity(), android.R.layout.simple_spinner_item, localesList);
- adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
+ adapter.setDropDownViewResource(R.layout.custom_spinner_dropdown_item);
localeSpinner.setAdapter(adapter);
localeSpinner.setOnItemSelectedListener(this);
}