From 3f5d298ff5a65436b9922206ab067bd28c34bbe6 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:08:04 -0400 Subject: Refine UI in CustomizePostFilterActivity and CustomizeCommentFilterActivity. --- .../activities/CustomizePostFilterActivity.java | 5 +- .../layout-land/activity_customize_post_filter.xml | 61 +++++++++++++++------ .../activity_customize_post_filter.xml | 61 +++++++++++++++------ .../layout/activity_customize_comment_filter.xml | 2 +- .../res/layout/activity_customize_post_filter.xml | 63 ++++++++++++++++------ app/src/main/res/values/strings.xml | 1 + 6 files changed, 146 insertions(+), 47 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizePostFilterActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizePostFilterActivity.java index d9df88d2..ca56bcdf 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizePostFilterActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizePostFilterActivity.java @@ -254,11 +254,14 @@ public class CustomizePostFilterActivity extends BaseActivity { binding.collapsingToolbarLayoutCustomizePostFilterActivity, binding.toolbarCustomizePostFilterActivity); int primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor(); int primaryIconColor = mCustomThemeWrapper.getPrimaryIconColor(); + int filledCardViewBackgroundColor = mCustomThemeWrapper.getFilledCardViewBackgroundColor(); + + binding.nameCardViewCustomizePostFilterActivity.setCardBackgroundColor(filledCardViewBackgroundColor); + binding.nameExplanationTextViewCustomizePostFilterActivity.setTextColor(primaryTextColor); binding.nameTextInputLayoutCustomizePostFilterActivity.setBoxStrokeColor(primaryTextColor); binding.nameTextInputLayoutCustomizePostFilterActivity.setDefaultHintTextColor(ColorStateList.valueOf(primaryTextColor)); binding.nameTextInputEditTextCustomizePostFilterActivity.setTextColor(primaryTextColor); - int filledCardViewBackgroundColor = mCustomThemeWrapper.getFilledCardViewBackgroundColor(); binding.postTypeCardViewCustomizePostFilterActivity.setCardBackgroundColor(filledCardViewBackgroundColor); binding.postTypeExplanationTextViewCustomizePostFilterActivity.setTextColor(primaryTextColor); binding.postTypeTextTextViewCustomizePostFilterActivity.setCompoundDrawablesWithIntrinsicBounds(Utils.getTintedDrawable(this, R.drawable.ic_text_24dp, primaryIconColor), null, null, null); diff --git a/app/src/main/res/layout-land/activity_customize_post_filter.xml b/app/src/main/res/layout-land/activity_customize_post_filter.xml index 61ce99cc..32197519 100644 --- a/app/src/main/res/layout-land/activity_customize_post_filter.xml +++ b/app/src/main/res/layout-land/activity_customize_post_filter.xml @@ -50,26 +50,57 @@ android:layout_height="wrap_content" android:orientation="vertical"> - - - + + + android:orientation="vertical"> + + - + + + + + + + + + - - - + + + android:orientation="vertical"> + + - + + + + + + + + + diff --git a/app/src/main/res/layout/activity_customize_post_filter.xml b/app/src/main/res/layout/activity_customize_post_filter.xml index 89c59f4e..575bc9c0 100644 --- a/app/src/main/res/layout/activity_customize_post_filter.xml +++ b/app/src/main/res/layout/activity_customize_post_filter.xml @@ -43,26 +43,59 @@ android:layout_height="wrap_content" android:orientation="vertical"> - - - + + + android:orientation="vertical"> + + + + + + - + + + + + Leave it blank to apply this post filter to all the subreddits / users / multireddits Click here to apply it to some post feeds and %1$d more + The post filter name should be unique. To see certain types of posts, please turn on the switch corresponding to the types. To only see NSFW or spoiler posts, please turn on the corresponding switch. Posts will be filtered out if they contain the following keywords in their title. -- cgit v1.2.3