diff --git a/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java b/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java index 634480f7b..3fe69284b 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java @@ -723,7 +723,7 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene } if ((oldState == STATE_INIT || oldState == STATE_FAILED || oldState == STATE_REFRESH) && - (state == STATE_NORMAL || state == STATE_REFRESH_HEADER)) { + (state == STATE_NORMAL || state == STATE_REFRESH_HEADER) && AttrResources.getAttrBoolean(getContext2(), R.attr.isLightTheme)) { if (!createCircularReveal()) { SimpleHandler.getInstance().post(new Runnable() { @Override @@ -834,8 +834,8 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene mNoTags.setVisibility(View.GONE); } - int colorTag = resources.getColor(R.color.colorPrimary); - int colorName = resources.getColor(R.color.purple_a400); + int colorTag = AttrResources.getAttrColor(context, R.attr.contentColorThemePrimary);//resources.getColor(R.color.colorPrimary); + int colorName = AttrResources.getAttrColor(context, R.attr.contentColorThemeAccent);//resources.getColor(R.color.purple_a400); for (GalleryTagGroup tg : tagGroups) { LinearLayout ll = (LinearLayout) inflater.inflate(R.layout.gallery_tag_group, mTags, false); ll.setOrientation(LinearLayout.HORIZONTAL); diff --git a/app/src/main/res/layout/gallery_detail_header.xml b/app/src/main/res/layout/gallery_detail_header.xml index 7064e1a89..7cdf5d681 100644 --- a/app/src/main/res/layout/gallery_detail_header.xml +++ b/app/src/main/res/layout/gallery_detail_header.xml @@ -31,7 +31,7 @@ android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" - android:background="?attr/colorPrimary"/> + android:background="?attr/contentColorThemePrimary"/> + + + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index a61715c6f..0068f9d8c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -51,9 +51,12 @@ #ff7cb342 #fff9a825 #ffff7043 + #ff424242 + #ff616161 #ff9e9e9e #ffe0e0e0 #ffeeeeee + #fff5f5f5 #ff795548 @color/teal_500 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 09b54b637..b9832531c 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -144,6 +144,7 @@ 4dp 4dp true + ?attr/contentColorPrimary 0dp diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index ff823c73e..14de76138 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -32,7 +32,9 @@ @color/primary_drawable_light @color/secondary_drawable_light @color/colorPrimary - + @color/grey_100 + @color/colorPrimary + @color/colorAccent @style/ThemeOverlay.AppCompat.Light @@ -58,6 +60,9 @@ @color/primary_drawable_dark @color/secondary_drawable_dark @color/primary_drawable_dark + @color/grey_800 + ?attr/contentColorPrimary + ?attr/contentColorPrimary @style/ThemeOverlay.AppCompat.Dark @@ -87,6 +92,9 @@ @color/primary_drawable_dark @color/secondary_drawable_dark @color/primary_drawable_dark + @color/grey_800 + ?attr/contentColorPrimary + ?attr/contentColorPrimary @style/ThemeOverlay.AppCompat.Dark