abouttreesummaryrefslogcommitdiff
path: root/res/values
diff options
context:
space:
mode:
authorTadaCZE2024-07-06 20:32:01 +0000
committerGitHub2024-07-06 22:32:01 +0200
commitcd0f61da744f38f90aa942d08d038e09b6d32b79 (patch)
treec66adf2ee0f9f5e36682672a24e85924713e96f5 /res/values
parentce57b5a4a2dfa78c90cc1fb4c6ccc2b513431d1e (diff)
downloadunexpected-keyboard-cd0f61da744f38f90aa942d08d038e09b6d32b79.tar.gz
unexpected-keyboard-cd0f61da744f38f90aa942d08d038e09b6d32b79.zip
Add support for Android 12+ dynamic colors (#647)
Diffstat (limited to 'res/values')
-rw-r--r--res/values/arrays.xml6
-rw-r--r--res/values/strings.xml3
-rw-r--r--res/values/themes.xml24
3 files changed, 33 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 9176882..9fe5b38 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -28,6 +28,9 @@
<item>@string/pref_theme_e_epaper</item>
<item>@string/pref_theme_e_desert</item>
<item>@string/pref_theme_e_jungle</item>
+ <item>@string/pref_theme_e_monet</item>
+ <item>@string/pref_theme_e_monetlight</item>
+ <item>@string/pref_theme_e_monetdark</item>
</string-array>
<string-array name="pref_theme_values">
<item>system</item>
@@ -39,6 +42,9 @@
<item>epaper</item>
<item>desert</item>
<item>jungle</item>
+ <item>monet</item>
+ <item>monetlight</item>
+ <item>monetdark</item>
</string-array>
<string-array name="pref_swipe_dist_entries">
<item>@string/pref_swipe_dist_e_very_short</item>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 75df689..edd9a10 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -68,6 +68,9 @@ This application contains no ads, doesn't make any network requests and is Open
<string name="pref_theme_e_epaper">ePaper</string>
<string name="pref_theme_e_desert">Desert</string>
<string name="pref_theme_e_jungle">Jungle</string>
+ <string name="pref_theme_e_monet">Monet (System)</string>
+ <string name="pref_theme_e_monetlight">Monet (Light)</string>
+ <string name="pref_theme_e_monetdark">Monet (Dark)</string>
<string name="pref_swipe_dist_e_very_short">Very short</string>
<string name="pref_swipe_dist_e_short">Short</string>
<string name="pref_swipe_dist_e_default">Normal</string>
diff --git a/res/values/themes.xml b/res/values/themes.xml
index aa30080..4aba4e3 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -179,4 +179,28 @@
<item name="emoji_button_bg">?colorKeyActivated</item>
<item name="emoji_color">#000000</item>
</style>
+ <style name="MonetLight" parent="@style/BaseTheme">
+ <item name="android:isLightTheme">true</item>
+ <item name="colorKeyboard">@android:color/system_accent1_100</item>
+ <item name="colorKey">@android:color/system_accent1_0</item>
+ <item name="colorKeyActivated">@android:color/system_accent1_300</item>
+ <item name="colorLabel">@android:color/system_accent1_1000</item>
+ <item name="colorLabelActivated">@android:color/system_accent1_1000</item>
+ <item name="colorLabelLocked">@android:color/system_accent1_500</item>
+ <item name="colorSubLabel">@android:color/system_accent1_900</item>
+ <item name="emoji_button_bg">?colorKeyActivated</item>
+ <item name="emoji_color">@android:color/system_accent1_1000</item>
+ </style>
+ <style name="MonetDark" parent="@style/BaseTheme">
+ <item name="android:isLightTheme">false</item>
+ <item name="colorKeyboard">@android:color/system_accent1_900</item>
+ <item name="colorKey">@android:color/system_accent1_800</item>
+ <item name="colorKeyActivated">@android:color/system_accent1_600</item>
+ <item name="colorLabel">@android:color/system_neutral1_0</item>
+ <item name="colorLabelActivated">@android:color/system_accent2_300</item>
+ <item name="colorLabelLocked">@android:color/system_accent2_100</item>
+ <item name="colorSubLabel">@android:color/system_neutral1_300</item>
+ <item name="emoji_button_bg">?colorKeyActivated</item>
+ <item name="emoji_color">@android:color/system_accent1_900</item>
+ </style>
</resources>