From 179c16d5963a87fb53eedc0829f7e9d30eb26b09 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 5 Jun 2020 21:08:15 +0800 Subject: Use outline icon for multireddit. Fix black report icon in dark theme. Add a colon between sort type and sort time in toolbar. --- .../ml/docilealligator/infinityforreddit/Utils/Utils.java | 2 +- app/src/main/res/drawable-night/ic_multi_reddit_24dp.xml | 4 ++-- app/src/main/res/drawable-night/ic_report_24dp.xml | 15 +++++++++++++++ app/src/main/res/drawable/ic_multi_reddit_24dp.xml | 4 ++-- app/src/main/res/drawable/ic_report_24dp.xml | 15 +++++++++++++++ app/src/main/res/drawable/ic_report_black_24dp.xml | 15 --------------- .../res/layout/fragment_comment_more_bottom_sheet.xml | 2 +- 7 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 app/src/main/res/drawable-night/ic_report_24dp.xml create mode 100644 app/src/main/res/drawable/ic_report_24dp.xml delete mode 100644 app/src/main/res/drawable/ic_report_black_24dp.xml (limited to 'app') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java index 5bbb2e73..159b03f0 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java @@ -111,7 +111,7 @@ public class Utils { public static void displaySortTypeInToolbar(SortType sortType, Toolbar toolbar) { if (sortType != null) { if (sortType.getTime() != null) { - toolbar.setSubtitle(sortType.getType().fullName + " " + sortType.getTime().fullName); + toolbar.setSubtitle(sortType.getType().fullName + ": " + sortType.getTime().fullName); } else { toolbar.setSubtitle(sortType.getType().fullName); } diff --git a/app/src/main/res/drawable-night/ic_multi_reddit_24dp.xml b/app/src/main/res/drawable-night/ic_multi_reddit_24dp.xml index cd680d79..0dd56678 100644 --- a/app/src/main/res/drawable-night/ic_multi_reddit_24dp.xml +++ b/app/src/main/res/drawable-night/ic_multi_reddit_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> + android:pathData="M4,6L2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6zM20,2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM20,16L8,16L8,4h12v12zM10,9h8v2h-8zM10,12h4v2h-4zM10,6h8v2h-8z" + android:fillColor="#FFFFFF"/> diff --git a/app/src/main/res/drawable-night/ic_report_24dp.xml b/app/src/main/res/drawable-night/ic_report_24dp.xml new file mode 100644 index 00000000..252ebc72 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_report_24dp.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_multi_reddit_24dp.xml b/app/src/main/res/drawable/ic_multi_reddit_24dp.xml index 74b886ad..c4235218 100644 --- a/app/src/main/res/drawable/ic_multi_reddit_24dp.xml +++ b/app/src/main/res/drawable/ic_multi_reddit_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> + android:pathData="M4,6L2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6zM20,2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM20,16L8,16L8,4h12v12zM10,9h8v2h-8zM10,12h4v2h-4zM10,6h8v2h-8z" + android:fillColor="#000000"/> diff --git a/app/src/main/res/drawable/ic_report_24dp.xml b/app/src/main/res/drawable/ic_report_24dp.xml new file mode 100644 index 00000000..6e07b06d --- /dev/null +++ b/app/src/main/res/drawable/ic_report_24dp.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/app/src/main/res/drawable/ic_report_black_24dp.xml b/app/src/main/res/drawable/ic_report_black_24dp.xml deleted file mode 100644 index 6e07b06d..00000000 --- a/app/src/main/res/drawable/ic_report_black_24dp.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml index ddd3e572..d0d57e55 100644 --- a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml @@ -87,7 +87,7 @@ android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" android:clickable="true" - android:drawableStart="@drawable/ic_report_black_24dp" + android:drawableStart="@drawable/ic_report_24dp" android:drawablePadding="48dp" android:focusable="true" android:gravity="center_vertical" -- cgit v1.2.3