From 44e2987a848ec07fd866f8ed76bb29c66b03e60a Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 4 Aug 2019 11:11:52 +0800 Subject: Fixed UI in dark theme. Minor bugs fixed. --- app/src/main/res/layout/app_bar_main.xml | 1 + app/src/main/res/layout/item_post.xml | 8 ++++---- app/src/main/res/values-night/colors.xml | 14 ++++++++++++++ app/src/main/res/values/colors.xml | 12 ++++++++++++ 4 files changed, 31 insertions(+), 4 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 530663ca..3c1aeb21 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -28,6 +28,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" app:layout_collapseMode="pin" app:layout_scrollFlags="scroll|enterAlways" app:popupTheme="@style/AppTheme.PopupOverlay" /> diff --git a/app/src/main/res/layout/item_post.xml b/app/src/main/res/layout/item_post.xml index 7598375d..e3be0913 100644 --- a/app/src/main/res/layout/item_post.xml +++ b/app/src/main/res/layout/item_post.xml @@ -19,7 +19,7 @@ android:layout_height="wrap_content"> diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index a08dfe08..e79b7fa2 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -27,4 +27,18 @@ #242424 #000000 + + #3C3C3C + + #FFFFFF + + @color/backgroundColor + + @color/tabLayoutWithExpandedCollapsingToolbarTextColor + + #FFFFFF + + @color/colorPrimary + + @color/tabLayoutWithCollapsedCollapsingToolbarTextColor diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 6bbfc9c6..b69907f3 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -29,4 +29,16 @@ #000000 #F0F0F0 + + @color/colorPrimary + + #FFFFFF + + @color/tabLayoutWithExpandedCollapsingToolbarTextColor + + #FFFFFF + + @color/colorPrimary + + @color/tabLayoutWithCollapsedCollapsingToolbarTextColor -- cgit v1.2.3