From 88bc0bf61356b6f9c31fb888506aec805b0896a4 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Mon, 15 Nov 2021 21:53:57 +0700 Subject: [PATCH] Adapt App Themes to M3 Color System (#6230) * Adapt Default theme to M3 color system * Adapt Dynamic theme to M3 color system * Adapt Midnight Dusk theme to M3 color system * Adapt Strawberry Daiquiri theme to M3 color system * Adapt Yotsuba theme to M3 color system * Adapt Tako theme to M3 color system * Adapt Green Apple theme to M3 color system * Adapt Teal & Turquoise theme to M3 color system * Adapt Yin & Yang theme to M3 color system * Remove old theme colors * Yotsuba theme adjustments Co-authored-by: ztimms73 * Green Apple theme adjustments Co-authored-by: Soitora <10836780+Soitora@users.noreply.github.com> * Tako theme adjustments * Midnight Dusk theme adjustments * Use colorSurfaceVariant for colorControlHighlight * Nits Co-authored-by: ztimms73 Co-authored-by: Soitora <10836780+Soitora@users.noreply.github.com> --- .../res/color-v31/ripple_colored_monet.xml | 4 - app/src/main/res/values-night-v31/themes.xml | 44 ++++ app/src/main/res/values-night/colors.xml | 49 +--- .../res/values-night/greenapple_colors.xml | 36 +++ .../res/values-night/midnightdusk_colors.xml | 36 +++ .../res/values-night/strawberry_colors.xml | 36 +++ .../res/values-night/tachiyomi_colors.xml | 35 +++ app/src/main/res/values-night/tako_colors.xml | 36 +++ .../res/values-night/tealturqoise_colors.xml | 36 +++ app/src/main/res/values-night/themes.xml | 10 - .../main/res/values-night/yinyang_colors.xml | 30 +++ .../main/res/values-night/yotsuba_colors.xml | 36 +++ app/src/main/res/values-v31/themes.xml | 51 +++- app/src/main/res/values/colors.xml | 65 +---- app/src/main/res/values/greenapple_colors.xml | 36 +++ .../main/res/values/midnightdusk_colors.xml | 36 +++ app/src/main/res/values/strawberry_colors.xml | 36 +++ app/src/main/res/values/tachiyomi_colors.xml | 35 +++ app/src/main/res/values/tako_colors.xml | 36 +++ .../main/res/values/tealturqoise_colors.xml | 36 +++ app/src/main/res/values/themes.xml | 232 ++++++++++++++---- app/src/main/res/values/yinyang_colors.xml | 30 +++ app/src/main/res/values/yotsuba_colors.xml | 36 +++ 23 files changed, 841 insertions(+), 176 deletions(-) delete mode 100644 app/src/main/res/color-v31/ripple_colored_monet.xml create mode 100644 app/src/main/res/values-night-v31/themes.xml create mode 100644 app/src/main/res/values-night/greenapple_colors.xml create mode 100644 app/src/main/res/values-night/midnightdusk_colors.xml create mode 100644 app/src/main/res/values-night/strawberry_colors.xml create mode 100644 app/src/main/res/values-night/tachiyomi_colors.xml create mode 100644 app/src/main/res/values-night/tako_colors.xml create mode 100644 app/src/main/res/values-night/tealturqoise_colors.xml create mode 100644 app/src/main/res/values-night/yinyang_colors.xml create mode 100644 app/src/main/res/values-night/yotsuba_colors.xml create mode 100644 app/src/main/res/values/greenapple_colors.xml create mode 100644 app/src/main/res/values/midnightdusk_colors.xml create mode 100644 app/src/main/res/values/strawberry_colors.xml create mode 100644 app/src/main/res/values/tachiyomi_colors.xml create mode 100644 app/src/main/res/values/tako_colors.xml create mode 100644 app/src/main/res/values/tealturqoise_colors.xml create mode 100644 app/src/main/res/values/yinyang_colors.xml create mode 100644 app/src/main/res/values/yotsuba_colors.xml diff --git a/app/src/main/res/color-v31/ripple_colored_monet.xml b/app/src/main/res/color-v31/ripple_colored_monet.xml deleted file mode 100644 index efaa46d448..0000000000 --- a/app/src/main/res/color-v31/ripple_colored_monet.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - 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 0000000000..8db9fdf9f6 --- /dev/null +++ b/app/src/main/res/values-night-v31/themes.xml @@ -0,0 +1,44 @@ + + + + + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 9c55f75f8e..9d6a4a86a6 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -1,47 +1,12 @@ - - @color/background_default + + #202125 + + #FFB4A9 + #930006 + #680003 + #FFDAD4 - #3399FF @color/md_white_1000_12 - #242529 - #202125 - #1F3399FF - - - @android:color/system_accent1_100 - @android:color/system_accent1_900 - @android:color/system_neutral1_700 - @android:color/system_accent3_100 - @android:color/system_accent3_900 - @android:color/system_neutral1_900 - @android:color/system_neutral1_50 - - - #48E484 - @color/md_black_1000 - #1F48E484 - - - #F3B375 - #242431 - @color/color_on_primary_tako - @color/accent_tako - #1FF3B375 - #2A2A3C - #21212E - @color/accent_tako - - - #40E0D0 - #000000 - #BF1F2F - #FFFFFF - #1F40E0D0 - - - #FFFFFF - #000000 - #777777 diff --git a/app/src/main/res/values-night/greenapple_colors.xml b/app/src/main/res/values-night/greenapple_colors.xml new file mode 100644 index 0000000000..ecc50b64b8 --- /dev/null +++ b/app/src/main/res/values-night/greenapple_colors.xml @@ -0,0 +1,36 @@ + + + + #7ADB8F + #003915 + #005322 + #96F8A9 + #7ADB8F + #003915 + #005322 + #96F8A9 + #FFB3AA + #680006 + #93000D + #FFDAD5 + #1A1C19 + #E1E3DD + #1A1C19 + #E1E3DD + #414941 + #C1C8BE + #8B9389 + #1A1C19 + #E1E3DD + #006D2F + diff --git a/app/src/main/res/values-night/midnightdusk_colors.xml b/app/src/main/res/values-night/midnightdusk_colors.xml new file mode 100644 index 0000000000..bc31204844 --- /dev/null +++ b/app/src/main/res/values-night/midnightdusk_colors.xml @@ -0,0 +1,36 @@ + + + + #FFB1C4 + #66002A + #8F003F + #FFD9E1 + #FFB1C4 + #66002A + #8F003F + #FFD9E1 + #EDBE91 + #462A09 + #60401D + #FFDCBA + #16151D + #E5E1E5 + #16151D + #E5E1E5 + #524346 + #D6C1C4 + #9F8C8F + #1C1B1F + #E5E1E5 + #BB0054 + diff --git a/app/src/main/res/values-night/strawberry_colors.xml b/app/src/main/res/values-night/strawberry_colors.xml new file mode 100644 index 0000000000..79071bd14f --- /dev/null +++ b/app/src/main/res/values-night/strawberry_colors.xml @@ -0,0 +1,36 @@ + + + + #FFB2B9 + #67001B + #91002A + #FFDADD + #FFB2B9 + #67001B + #91002A + #FFDADD + #E8C08E + #432C06 + #5D421B + #FFDDB1 + #201A1A + #ECDFDF + #201A1A + #ECDFDF + #534344 + #D7C1C2 + #A08C8D + #201A1A + #ECDFDF + #B61E40 + diff --git a/app/src/main/res/values-night/tachiyomi_colors.xml b/app/src/main/res/values-night/tachiyomi_colors.xml new file mode 100644 index 0000000000..40f5befccf --- /dev/null +++ b/app/src/main/res/values-night/tachiyomi_colors.xml @@ -0,0 +1,35 @@ + + + + #AEC6FF + #002C71 + #00419E + #D8E2FF + #AEC6FF + #002C71 + #00419E + #D8E2FF + #7ADC77 + #003907 + #00530D + #95F990 + #1B1B1E + #E4E2E6 + #1B1B1E + #E4E2E6 + #44464E + #C5C6D0 + #8E9099 + #1B1B1E + #E4E2E6 + #0057CE + diff --git a/app/src/main/res/values-night/tako_colors.xml b/app/src/main/res/values-night/tako_colors.xml new file mode 100644 index 0000000000..9aabf0b1b2 --- /dev/null +++ b/app/src/main/res/values-night/tako_colors.xml @@ -0,0 +1,36 @@ + + + + #F3B375 + #38294E + #F3B375 + #38294E + #F3B375 + #38294E + #F3B375 + #38294E + #66577E + #F3B375 + #4E4065 + #EDDCFF + #21212E + #E3E0F2 + #21212E + #E3E0F2 + #49454E + #CBC4CE + #958F99 + #1B1B1E + #E5E1E6 + #84531E + diff --git a/app/src/main/res/values-night/tealturqoise_colors.xml b/app/src/main/res/values-night/tealturqoise_colors.xml new file mode 100644 index 0000000000..74d29764f7 --- /dev/null +++ b/app/src/main/res/values-night/tealturqoise_colors.xml @@ -0,0 +1,36 @@ + + + + #4DDADA + #003738 + #004F50 + #6EF6F6 + #4DDADA + #003738 + #004F50 + #6EF6F6 + #FFB3B1 + #640914 + #842328 + #FFDAD7 + #191C1C + #E0E3E2 + #191C1C + #E0E3E2 + #3F4848 + #BEC9C8 + #889392 + #191C1C + #E0E3E2 + #006A6A + diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index dbd49bb7d4..d59f70dc02 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -1,16 +1,6 @@ - - - diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 642fa15e30..a106bf35af 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -2,68 +2,17 @@ @color/accent_blue - - @color/md_blue_A400 - @color/md_black_1000_12 - @color/md_white_1000 - @color/md_grey_50 - @color/md_blue_A400_12 + #BA1B1B + #FFDAD4 + #FFFFFF + #410001 - - @android:color/system_accent1_600 - @android:color/system_accent1_10 - @android:color/system_neutral1_200 - @android:color/system_accent3_600 - @android:color/system_accent3_10 - @android:color/system_neutral1_50 - @android:color/system_neutral1_900 - @color/surface_monet - @color/on_surface_monet + + @color/md_black_1000_12 #54759E - - #188140 - @color/md_white_1000 - #1F188140 - - - #F02475 - #16151D - #201F27 - #1FF02475 - - - #ED4A65 - #1FED4A65 - - - #66577E - #F3B375 - @color/color_on_primary_tako - #574360 - #1F66577E - #F7F5FF - #F2EDF7 - #F29940 - - - #008080 - #FFFFFF - #FF7F7F - #000000 - #1F008080 - - - #000000 - #FFFFFF - #999999 - - - #FC8C5C - #1FFC8C5C - #000001 #000000 @@ -111,8 +60,6 @@ #263238 #37474F - #47a84a - #CB84E296 #CCFF7733 diff --git a/app/src/main/res/values/greenapple_colors.xml b/app/src/main/res/values/greenapple_colors.xml new file mode 100644 index 0000000000..13dbf83dc5 --- /dev/null +++ b/app/src/main/res/values/greenapple_colors.xml @@ -0,0 +1,36 @@ + + + + #006D2F + #FFFFFF + #96F8A9 + #002109 + #006D2F + #FFFFFF + #96F8A9 + #002109 + #B91D22 + #FFFFFF + #FFDAD5 + #410003 + #FBFDF7 + #1A1C19 + #FBFDF7 + #1A1C19 + #DDE5DA + #414941 + #717970 + #F0F2EC + #2F312E + #7ADB8F + diff --git a/app/src/main/res/values/midnightdusk_colors.xml b/app/src/main/res/values/midnightdusk_colors.xml new file mode 100644 index 0000000000..450315c6ea --- /dev/null +++ b/app/src/main/res/values/midnightdusk_colors.xml @@ -0,0 +1,36 @@ + + + + #BB0054 + #FFFFFF + #FFD9E1 + #3F0017 + #BB0054 + #FFFFFF + #FFD9E1 + #3F0017 + #7A5733 + #FFFFFF + #FFDCBA + #2D1600 + #FFFBFF + #1C1B1F + #FFFBFF + #1C1B1F + #F3DDE0 + #524346 + #847376 + #F4F0F4 + #313033 + #FFB1C4 + diff --git a/app/src/main/res/values/strawberry_colors.xml b/app/src/main/res/values/strawberry_colors.xml new file mode 100644 index 0000000000..97e45ba773 --- /dev/null +++ b/app/src/main/res/values/strawberry_colors.xml @@ -0,0 +1,36 @@ + + + + #B61E40 + #FFFFFF + #FFDADD + #40000D + #B61E40 + #FFFFFF + #FFDADD + #40000D + #775930 + #FFFFFF + #FFDDB1 + #2A1800 + #FCFCFC + #201A1A + #FCFCFC + #201A1A + #F4DDDD + #534344 + #857374 + #FBEDED + #362F2F + #FFB2B9 + diff --git a/app/src/main/res/values/tachiyomi_colors.xml b/app/src/main/res/values/tachiyomi_colors.xml new file mode 100644 index 0000000000..e5f4f5ed83 --- /dev/null +++ b/app/src/main/res/values/tachiyomi_colors.xml @@ -0,0 +1,35 @@ + + + + #0057CE + #FFFFFF + #D8E2FF + #001947 + #0057CE + #FFFFFF + #D8E2FF + #001947 + #006E17 + #FFFFFF + #95F990 + #002202 + #FDFBFF + #1B1B1E + #FDFBFF + #1B1B1E + #E1E2EC + #44464E + #757780 + #F2F0F4 + #303033 + #AEC6FF + diff --git a/app/src/main/res/values/tako_colors.xml b/app/src/main/res/values/tako_colors.xml new file mode 100644 index 0000000000..54198e69cf --- /dev/null +++ b/app/src/main/res/values/tako_colors.xml @@ -0,0 +1,36 @@ + + + + #66577E + #F3B375 + #66577E + #F3B375 + #66577E + #F3B375 + #66577E + #F3B375 + #F3B375 + #574360 + #FDD6B0 + #221437 + #F7F5FF + #1B1B22 + #F7F5FF + #1B1B22 + #E8E0EB + #49454E + #7A757E + #F3EFF4 + #313033 + #D6BAFF + diff --git a/app/src/main/res/values/tealturqoise_colors.xml b/app/src/main/res/values/tealturqoise_colors.xml new file mode 100644 index 0000000000..289ca9f935 --- /dev/null +++ b/app/src/main/res/values/tealturqoise_colors.xml @@ -0,0 +1,36 @@ + + + + #006A6A + #FFFFFF + #6EF6F6 + #002020 + #006A6A + #FFFFFF + #6EF6F6 + #002020 + #A33A3D + #FFFFFF + #FFDAD7 + #410006 + #FAFDFC + #191C1C + #FAFDFC + #191C1C + #DAE5E4 + #3F4848 + #6F7978 + #EFF1F0 + #2D3131 + #4DDADA + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 43e167d325..be282f6279 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -11,24 +11,40 @@ false - @color/accent_default - @color/md_white_1000 - ?attr/colorPrimary - ?attr/colorOnPrimary - ?attr/colorPrimary - ?attr/colorPrimaryContainer - ?attr/colorOnPrimary - @color/green - @color/md_white_1000 + @color/tachiyomi_primary + @color/tachiyomi_onPrimary + @color/tachiyomi_primaryContainer + @color/tachiyomi_onPrimaryContainer + @color/tachiyomi_secondary + @color/tachiyomi_onSecondary + @color/tachiyomi_secondaryContainer + @color/tachiyomi_onSecondaryContainer + @color/tachiyomi_tertiary + @color/tachiyomi_onTertiary + @color/tachiyomi_tertiaryContainer + @color/tachiyomi_onTertiaryContainer + @color/tachiyomi_background + @color/tachiyomi_onBackground + @color/tachiyomi_surface + @color/tachiyomi_onSurface + @color/tachiyomi_surfaceVariant + @color/tachiyomi_onSurfaceVariant + @color/tachiyomi_outline + @color/tachiyomi_inverseOnSurface + @color/tachiyomi_inverseSurface + @color/tachiyomi_primaryInverse + @color/error + @color/onError + @color/errorContainer + @color/onErrorContainer + ?attr/colorSurface ?attr/colorOnSurface - @color/surface_default - @color/background_default @color/divider_default @drawable/line_divider - @color/ripple_colored_default + ?attr/colorSurfaceVariant ?attr/colorControlHighlight @@ -89,76 +105,194 @@ diff --git a/app/src/main/res/values/yinyang_colors.xml b/app/src/main/res/values/yinyang_colors.xml new file mode 100644 index 0000000000..79a7d444b1 --- /dev/null +++ b/app/src/main/res/values/yinyang_colors.xml @@ -0,0 +1,30 @@ + + + + #000000 + #FFFFFF + #DDDDDD + #0C0C0C + #000000 + #FFFFFF + #DDDDDD + #0C0C0C + #0057CE + #FFFFFF + #D8E2FF + #001947 + #FDFDFD + #222222 + #FDFDFD + #222222 + #EDEDED + #515151 + #838383 + #F4F4F4 + #333333 + #A6A6A6 + diff --git a/app/src/main/res/values/yotsuba_colors.xml b/app/src/main/res/values/yotsuba_colors.xml new file mode 100644 index 0000000000..79c662f7fb --- /dev/null +++ b/app/src/main/res/values/yotsuba_colors.xml @@ -0,0 +1,36 @@ + + + + #AE3200 + #FFFFFF + #FFDBCF + #3B0A00 + #AE3200 + #FFFFFF + #FFDBCF + #3B0A00 + #6B5E2F + #FFFFFF + #F5E2A7 + #231B00 + #FCFCFC + #211A18 + #FCFCFC + #211A18 + #F5DED8 + #53433F + #85736E + #FBEEEB + #362F2D + #FFB59D +