From 786d9895c87db642ca5c7a2522a905b4953ee8c4 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 26 Mar 2018 05:43:22 +0200 Subject: [PATCH] fixed popup menu in dark theme --- src/main/res/layout/toolbar.xml | 4 ++-- src/main/res/values/attrs.xml | 2 ++ src/main/res/values/themes.xml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/res/layout/toolbar.xml b/src/main/res/layout/toolbar.xml index 4bb507caf..f6e306ff1 100644 --- a/src/main/res/layout/toolbar.xml +++ b/src/main/res/layout/toolbar.xml @@ -4,8 +4,8 @@ android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" - android:elevation="6dp" + android:elevation="4dp" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" - app:popupTheme="@style/ThemeOverlay.AppCompat.Light" + app:popupTheme="?popupOverlayStyle" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" /> diff --git a/src/main/res/values/attrs.xml b/src/main/res/values/attrs.xml index 4fbdd12cb..45c3ea176 100644 --- a/src/main/res/values/attrs.xml +++ b/src/main/res/values/attrs.xml @@ -71,4 +71,6 @@ + + \ No newline at end of file diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index d6d3f2b33..79404e4ce 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -5,6 +5,7 @@ @color/primary500 @color/primary700 @color/accent + @style/ThemeOverlay.AppCompat.Light @color/grey50 @color/grey200 @@ -81,7 +82,7 @@ @color/primary800 @color/primary900 @color/accent - + @style/ThemeOverlay.AppCompat.Dark @color/grey800 @color/grey900