From 5af8e1af6292e47234224305f4d38c0b0c0540d1 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Sun, 15 Dec 2019 13:01:16 +0100 Subject: [PATCH] Add dark theme for material drawer --- app/src/main/res/layout/activity_main.xml | 9 +++++---- .../layout/activity_manage_feeds_folders.xml | 3 ++- app/src/main/res/values-night/styles.xml | 4 +++- app/src/main/res/values/styles.xml | 20 ++++++++++++------- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index da2b6ac6..83f2fcd1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -18,7 +18,8 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" - android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> + android:theme="@style/ToolbarTheme" + app:popupTheme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" /> + android:visibility="gone" + app:image="@drawable/ic_rss_feed_grey" + app:text="@string/no_item" /> @@ -26,7 +27,7 @@ android:layout_height="match_parent" app:tabIndicator="@drawable/tab_indicator" app:tabIndicatorColor="@android:color/white" - app:tabIndicatorHeight="4dp"/> + app:tabIndicatorHeight="4dp" /> diff --git a/app/src/main/res/values-night/styles.xml b/app/src/main/res/values-night/styles.xml index c197c241..d8487cfa 100644 --- a/app/src/main/res/values-night/styles.xml +++ b/app/src/main/res/values-night/styles.xml @@ -1,10 +1,12 @@ - + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index d5c86700..ed65579c 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,6 +1,6 @@ - - - + +