fixed popup menu in dark theme

This commit is contained in:
Daniel Gultsch 2018-03-26 05:43:22 +02:00
parent a32d0c5d20
commit 786d9895c8
3 changed files with 6 additions and 3 deletions

View File

@ -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" />

View File

@ -71,4 +71,6 @@
<attr name="backgroundColor" format="reference|color"/>
</declare-styleable>
<attr name="popupOverlayStyle" format="reference"/>
</resources>

View File

@ -5,6 +5,7 @@
<item name="colorPrimary">@color/primary500</item>
<item name="colorPrimaryDark">@color/primary700</item>
<item name="colorAccent">@color/accent</item>
<item name="popupOverlayStyle">@style/ThemeOverlay.AppCompat.Light</item>
<item name="color_background_primary">@color/grey50</item>
<item name="color_background_secondary">@color/grey200</item>
@ -81,7 +82,7 @@
<item name="colorPrimary">@color/primary800</item>
<item name="colorPrimaryDark">@color/primary900</item>
<item name="colorAccent">@color/accent</item>
<item name="popupOverlayStyle">@style/ThemeOverlay.AppCompat.Dark</item>
<item name="color_background_primary">@color/grey800</item>
<item name="color_background_secondary">@color/grey900</item>