From 3b4aa33ff3744c5de77dc90c0962e7540f1e2afc Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 18 Jan 2026 17:28:10 +0100 Subject: 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.--- res/values-v31/values.xml | 13 +++++++++++++ res/values/themes.xml | 24 ++++++++++++------------ res/values/values.xml | 11 +++++++++++ 3 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 res/values-v31/values.xml (limited to 'res') diff --git a/res/values-v31/values.xml b/res/values-v31/values.xml new file mode 100644 index 0000000..cc31327 --- /dev/null +++ b/res/values-v31/values.xml @@ -0,0 +1,13 @@ + + + + @android:color/system_accent1_400 + @android:color/system_accent1_600 + @android:color/system_neutral1_0 + @android:color/system_neutral1_100 + @android:color/system_neutral1_400 + @android:color/system_neutral1_50 + @android:color/system_neutral1_500 + @android:color/system_neutral1_800 + @android:color/system_neutral1_900 + diff --git a/res/values/themes.xml b/res/values/themes.xml index 84a4d6b..566c875 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -181,25 +181,25 @@ 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 @@ 8dp false + + #3399ff + #33cc33 + #ffffff + #e3e3e3 + #cccccc + #cccccc + #333333 + #333333 + #1b1b1b -- cgit v1.2.3