aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-22 06:44:10 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-22 06:44:10 +0000
commit5f7bfd88b7b525a503065842140a71c491c201fc (patch)
tree18d4c1f878a5102a171bd8599337ed4327212b31 /app/src/main/res
parent0840b7144f9a2bf0b1338c04da686b9ef6e4e4ae (diff)
downloadinfinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.tar
infinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.tar.gz
infinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.tar.bz2
infinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.tar.lz
infinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.tar.xz
infinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.tar.zst
infinity-for-reddit-5f7bfd88b7b525a503065842140a71c491c201fc.zip
Check for theme setting on every activities except ViewImageActivity and ViewVideoActivity to correctly set the theme. Minor bugs fixed. Minor UI tweaks.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml10
-rw-r--r--app/src/main/res/layout/activity_rules.xml2
-rw-r--r--app/src/main/res/layout/activity_search_result.xml2
-rw-r--r--app/src/main/res/layout/activity_search_subreddits_result.xml1
-rw-r--r--app/src/main/res/layout/activity_subscribed_thing_listing.xml2
-rw-r--r--app/src/main/res/values-night/colors.xml2
-rw-r--r--app/src/main/res/values/colors.xml2
-rw-r--r--app/src/main/res/values/strings.xml4
-rw-r--r--app/src/main/res/values/styles.xml2
9 files changed, 17 insertions, 10 deletions
diff --git a/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml b/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml
index d1bc2624..6fa0d26f 100644
--- a/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml
+++ b/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml
@@ -4,18 +4,18 @@
android:viewportWidth="24"
android:viewportHeight="24">
<path
- android:fillColor="#FF000000"
+ android:fillColor="#FFFFFFFF"
android:pathData="M12,22C6.49,22 2,17.51 2,12S6.49,2 12,2s10,4.04 10,9c0,3.31 -2.69,6 -6,6h-1.77c-0.28,0 -0.5,0.22 -0.5,0.5 0,0.12 0.05,0.23 0.13,0.33 0.41,0.47 0.64,1.06 0.64,1.67 0,1.38 -1.12,2.5 -2.5,2.5zM12,4c-4.41,0 -8,3.59 -8,8s3.59,8 8,8c0.28,0 0.5,-0.22 0.5,-0.5 0,-0.16 -0.08,-0.28 -0.14,-0.35 -0.41,-0.46 -0.63,-1.05 -0.63,-1.65 0,-1.38 1.12,-2.5 2.5,-2.5L16,15c2.21,0 4,-1.79 4,-4 0,-3.86 -3.59,-7 -8,-7z"/>
<path
- android:fillColor="#FF000000"
+ android:fillColor="#FFFFFFFF"
android:pathData="M6.5,11.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0"/>
<path
- android:fillColor="#FF000000"
+ android:fillColor="#FFFFFFFF"
android:pathData="M9.5,7.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0"/>
<path
- android:fillColor="#FF000000"
+ android:fillColor="#FFFFFFFF"
android:pathData="M14.5,7.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0"/>
<path
- android:fillColor="#FF000000"
+ android:fillColor="#FFFFFFFF"
android:pathData="M17.5,11.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0"/>
</vector>
diff --git a/app/src/main/res/layout/activity_rules.xml b/app/src/main/res/layout/activity_rules.xml
index 55f0ba07..9b8d2f87 100644
--- a/app/src/main/res/layout/activity_rules.xml
+++ b/app/src/main/res/layout/activity_rules.xml
@@ -7,7 +7,7 @@
tools:application=".RulesActivity">
<com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar_rules_activity"
+ android:id="@+id/appbar_layout_rules_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
diff --git a/app/src/main/res/layout/activity_search_result.xml b/app/src/main/res/layout/activity_search_result.xml
index 8620b0ec..ca7c4e84 100644
--- a/app/src/main/res/layout/activity_search_result.xml
+++ b/app/src/main/res/layout/activity_search_result.xml
@@ -6,7 +6,7 @@
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar_search_result_activity"
+ android:id="@+id/appbar_layout_search_result_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
diff --git a/app/src/main/res/layout/activity_search_subreddits_result.xml b/app/src/main/res/layout/activity_search_subreddits_result.xml
index 3b536bb8..3652e07c 100644
--- a/app/src/main/res/layout/activity_search_subreddits_result.xml
+++ b/app/src/main/res/layout/activity_search_subreddits_result.xml
@@ -7,6 +7,7 @@
tools:application=".SearchSubredditsResultActivity">
<com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_layout_search_subreddits_result_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
diff --git a/app/src/main/res/layout/activity_subscribed_thing_listing.xml b/app/src/main/res/layout/activity_subscribed_thing_listing.xml
index 45092748..6a48ec15 100644
--- a/app/src/main/res/layout/activity_subscribed_thing_listing.xml
+++ b/app/src/main/res/layout/activity_subscribed_thing_listing.xml
@@ -7,7 +7,7 @@
tools:application=".SubscribedThingListingActivity">
<com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar_subscribed_thing_listing_activity"
+ android:id="@+id/appbar_layout_subscribed_thing_listing_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index ddb63e21..758b8537 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -28,7 +28,7 @@
<color name="roundedBottomSheetPrimaryNavigationBarColor">@color/roundedBottomSheetPrimaryBackground</color>
- <color name="voteUnavailableVoteButtonColor">#3C3C3C</color>
+ <color name="voteAndReplyUnavailableVoteButtonColor">#3C3C3C</color>
<color name="tabLayoutWithExpandedCollapsingToolbarTextColor">#FFFFFF</color>
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index ef901a9e..b4c1fd87 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -28,7 +28,7 @@
<color name="roundedBottomSheetPrimaryNavigationBarColor">@color/roundedBottomSheetPrimaryBackground</color>
- <color name="voteUnavailableVoteButtonColor">#F0F0F0</color>
+ <color name="voteAndReplyUnavailableVoteButtonColor">#F0F0F0</color>
<color name="tabLayoutWithExpandedCollapsingToolbarTextColor">@color/colorPrimary</color>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ad1b9b7d..a5a170d3 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -182,6 +182,10 @@
<string name="no_browser_found">No browser found</string>
<string name="archived_post_vote_unavailable">Archived post. Vote unavailable.</string>
+ <string name="archived_post_comment_unavailable">Archived post. Comment unavailable.</string>
+ <string name="archived_post_reply_unavailable">Archived post. Reply unavailable.</string>
+ <string name="locked_post_comment_unavailable">Locked post. Comment unavailable.</string>
+ <string name="locked_post_reply_unavailable">Locked post. Reply unavailable.</string>
<string name="text">TEXT</string>
<string name="link">LINK</string>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 2b97cc0d..03c4361a 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -62,6 +62,8 @@
<style name="PreferenceActivityTheme" parent="AppTheme.NoActionBar">
<item name="android:textColorPrimary">@color/primaryTextColor</item>
+ <item name="buttonBarPositiveButtonStyle">@style/MaterialAlertDialogPositiveButtonStyle</item>
+ <item name="buttonBarNegativeButtonStyle">@style/MaterialAlertDialogNegativeButtonStyle</item>
</style>
</resources>