From f47ae3668facec7df00b6f46a63059dc9bcbd907 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Tue, 8 Jun 2021 20:08:51 +0200 Subject: [PATCH 1/4] [Bandcamp Add v21 styles --- .../main/res/values-v21/styles_services.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/src/main/res/values-v21/styles_services.xml b/app/src/main/res/values-v21/styles_services.xml index c495a9a31..c094bccb5 100644 --- a/app/src/main/res/values-v21/styles_services.xml +++ b/app/src/main/res/values-v21/styles_services.xml @@ -70,4 +70,23 @@ @color/dark_media_ccc_accent_color + + + + + + + From 060f09ff55077d4099138a7477e76459d54aeb65 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Tue, 8 Jun 2021 20:09:51 +0200 Subject: [PATCH 2/4] Apply service color to switches --- app/src/main/res/values-v21/styles_services.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/src/main/res/values-v21/styles_services.xml b/app/src/main/res/values-v21/styles_services.xml index c094bccb5..38ea216f8 100644 --- a/app/src/main/res/values-v21/styles_services.xml +++ b/app/src/main/res/values-v21/styles_services.xml @@ -3,14 +3,17 @@ @@ -18,18 +21,21 @@ @color/light_soundcloud_primary_color @color/light_soundcloud_statusbar_color @color/light_soundcloud_accent_color + ?attr/colorPrimary @@ -37,18 +43,21 @@ @color/light_peertube_primary_color @color/light_peertube_statusbar_color @color/light_peertube_accent_color + ?attr/colorPrimary @@ -56,18 +65,21 @@ @color/light_media_ccc_primary_color @color/light_media_ccc_statusbar_color @color/light_media_ccc_accent_color + ?attr/colorPrimary @@ -75,18 +87,21 @@ @color/light_bandcamp_primary_color @color/light_bandcamp_statusbar_color @color/light_bandcamp_accent_color + ?attr/colorPrimary From 6ab4787e9707daf851b6c897024fede673e3f255 Mon Sep 17 00:00:00 2001 From: Stypox Date: Wed, 9 Jun 2021 13:04:21 +0200 Subject: [PATCH 3/4] Use SwitchCompat to make switch uniform across versions Also just use colorControlActivated in the base V19 theme, instead of using the prefix android: in each V21 service theme --- app/src/main/res/layout/related_items_header.xml | 2 +- app/src/main/res/values-v21/styles_services.xml | 15 --------------- app/src/main/res/values/styles.xml | 1 + 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/app/src/main/res/layout/related_items_header.xml b/app/src/main/res/layout/related_items_header.xml index c23adc339..922d2ba2c 100644 --- a/app/src/main/res/layout/related_items_header.xml +++ b/app/src/main/res/layout/related_items_header.xml @@ -17,7 +17,7 @@ android:textSize="12sp" tools:ignore="RtlHardcoded" /> - @@ -21,21 +18,18 @@ @color/light_soundcloud_primary_color @color/light_soundcloud_statusbar_color @color/light_soundcloud_accent_color - ?attr/colorPrimary @@ -43,21 +37,18 @@ @color/light_peertube_primary_color @color/light_peertube_statusbar_color @color/light_peertube_accent_color - ?attr/colorPrimary @@ -65,21 +56,18 @@ @color/light_media_ccc_primary_color @color/light_media_ccc_statusbar_color @color/light_media_ccc_accent_color - ?attr/colorPrimary @@ -87,21 +75,18 @@ @color/light_bandcamp_primary_color @color/light_bandcamp_statusbar_color @color/light_bandcamp_accent_color - ?attr/colorPrimary diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c543044ca..95368b572 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -17,6 +17,7 @@ @style/FloatingActionButtonTheme @color/white @style/PreferenceThemeOverlay.v14.Material + ?attr/colorPrimary