From 976b56ce004a34b0446432a5e43fb172f8ccca29 Mon Sep 17 00:00:00 2001 From: jarnedemeulemeester Date: Sun, 3 Oct 2021 11:07:28 +0200 Subject: [PATCH] Add Android 12 dynamic colors --- app/src/main/res/values-night-v31/themes.xml | 24 ++++++++++++++++++++ app/src/main/res/values-night/themes.xml | 4 ++-- app/src/main/res/values-v31/themes.xml | 10 ++++++++ app/src/main/res/values/themes.xml | 13 +++++++---- 4 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 app/src/main/res/values-night-v31/themes.xml create mode 100644 app/src/main/res/values-v31/themes.xml diff --git a/app/src/main/res/values-night-v31/themes.xml b/app/src/main/res/values-night-v31/themes.xml new file mode 100644 index 00000000..00a77255 --- /dev/null +++ b/app/src/main/res/values-night-v31/themes.xml @@ -0,0 +1,24 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 2d775dbe..e6a595eb 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -8,7 +8,7 @@ @color/black - @color/black + @color/neutral_900 @color/red @@ -23,7 +23,7 @@ \ No newline at end of file diff --git a/app/src/main/res/values-v31/themes.xml b/app/src/main/res/values-v31/themes.xml new file mode 100644 index 00000000..bcb44740 --- /dev/null +++ b/app/src/main/res/values-v31/themes.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index e1b50b9b..45b24cff 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -10,8 +10,8 @@ @color/green_800 - @color/neutral_100 - @color/neutral_100 + @color/white + @color/white @color/red @@ -22,16 +22,19 @@ @color/white - ?android:attr/colorBackground + ?attr/colorSurface ?attr/isLightTheme - + + ?attr/colorSurface + + @style/Widget.MaterialComponents.Toolbar.Surface