abouttreesummaryrefslogcommitdiff
path: root/res/values/values.xml
diff options
context:
space:
mode:
authorJules Aguillon2026-01-18 17:28:10 +0100
committerGitHub2026-01-18 17:28:10 +0100
commit3b4aa33ff3744c5de77dc90c0962e7540f1e2afc (patch)
treefb1564b94d226a1f09a12b482007ce4c91f6597a /res/values/values.xml
parenta848897586223b050e87367b48ed2eebd0870d1d (diff)
downloadunexpected-keyboard-3b4aa33ff3744c5de77dc90c0962e7540f1e2afc.tar.gz
unexpected-keyboard-3b4aa33ff3744c5de77dc90c0962e7540f1e2afc.zip
Fix crash when using the Monet themes on Android 9 (#1155)
The color resources starting with `@android:color/system_` are not available on API < 31. No effort is made to implement the Monet feature on Android 9. Instead, the monet themes look like the Dark and Light themes.
Diffstat (limited to 'res/values/values.xml')
-rw-r--r--res/values/values.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/values/values.xml b/res/values/values.xml
index 18155a8..9f23212 100644
--- a/res/values/values.xml
+++ b/res/values/values.xml
@@ -9,4 +9,15 @@
<dimen name="candidates_spacing">8dp</dimen>
<!-- Will be overwritten automatically by Gradle for the debug build variant -->
<bool name="debug_logs">false</bool>
+ <!-- Color fallback for the Monet themes on Android API < 31. This makes the
+ Monet themes very similar to the "Dark" and "Light" themes. -->
+ <color name="system_accent1_400">#3399ff</color>
+ <color name="system_accent1_600">#33cc33</color>
+ <color name="system_neutral1_0">#ffffff</color>
+ <color name="system_neutral1_100">#e3e3e3</color>
+ <color name="system_neutral1_400">#cccccc</color>
+ <color name="system_neutral1_50">#cccccc</color>
+ <color name="system_neutral1_500">#333333</color>
+ <color name="system_neutral1_800">#333333</color>
+ <color name="system_neutral1_900">#1b1b1b</color>
</resources>