From e4abfc6e38dc80b4376e86a28813d5c098ace5d6 Mon Sep 17 00:00:00 2001
From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>
Date: Tue, 20 Aug 2024 14:51:07 -0400
Subject: Refine UI and add explanations for the name in
CustomizeCommentFilterActivity.
---
.../activities/CustomizeCommentFilterActivity.java | 5 +-
.../layout/activity_customize_comment_filter.xml | 63 ++++++++++++++++------
app/src/main/res/values/strings.xml | 3 +-
3 files changed, 54 insertions(+), 17 deletions(-)
(limited to 'app/src/main')
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizeCommentFilterActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizeCommentFilterActivity.java
index b8e5d15e..ac08670a 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizeCommentFilterActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CustomizeCommentFilterActivity.java
@@ -180,11 +180,14 @@ public class CustomizeCommentFilterActivity extends BaseActivity {
applyAppBarLayoutAndCollapsingToolbarLayoutAndToolbarTheme(binding.appbarLayoutCustomizeCommentFilterActivity, binding.collapsingToolbarLayoutCustomizeCommentFilterActivity, binding.toolbarCustomizeCommentFilterActivity);
int primaryTextColor = mCustomThemeWrapper.getPrimaryTextColor();
int primaryIconColor = mCustomThemeWrapper.getPrimaryIconColor();
+ int filledCardViewBackgroundColor = mCustomThemeWrapper.getFilledCardViewBackgroundColor();
+
+ binding.nameCardViewCustomizePostFilterActivity.setCardBackgroundColor(filledCardViewBackgroundColor);
+ binding.nameExplanationTextViewCustomizePostFilterActivity.setTextColor(primaryTextColor);
binding.nameTextInputLayoutCustomizeCommentFilterActivity.setBoxStrokeColor(primaryTextColor);
binding.nameTextInputLayoutCustomizeCommentFilterActivity.setDefaultHintTextColor(ColorStateList.valueOf(primaryTextColor));
binding.nameTextInputEditTextCustomizeCommentFilterActivity.setTextColor(primaryTextColor);
- int filledCardViewBackgroundColor = mCustomThemeWrapper.getFilledCardViewBackgroundColor();
binding.displayModeCardViewCustomizePostFilterActivity.setCardBackgroundColor(filledCardViewBackgroundColor);
binding.displayModeExplanationTextViewCustomizePostFilterActivity.setTextColor(primaryTextColor);
binding.displayModeTitleTextViewCustomizeCommentFilterActivity.setTextColor(primaryTextColor);
diff --git a/app/src/main/res/layout/activity_customize_comment_filter.xml b/app/src/main/res/layout/activity_customize_comment_filter.xml
index 7d8987ef..75ac2f88 100644
--- a/app/src/main/res/layout/activity_customize_comment_filter.xml
+++ b/app/src/main/res/layout/activity_customize_comment_filter.xml
@@ -41,26 +41,59 @@
android:layout_height="wrap_content"
android:orientation="vertical">
-
-
-
+
+
+ android:orientation="vertical">
+
+
-
+
+
+
+
+
+
+
+
+
Display mode
Remove comments
Fully collapse comments
- Filtered out comments will be shown as the following selected option
+ The comment filter name should be unique.
+ Filtered out comments will be shown as the following selected option.
Comments will be filtered out if they contain the following keywords.
Comments will be filtered out if they were submitted by the following users.
Comments that have a score lower than the following value will be filtered out (-1 means no restriction).
--
cgit v1.2.3