Added explicit popup menu style for light and dark themes.

Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
Sergiy Kozyr 2021-09-28 16:37:02 +03:00 committed by Alexander Borsuk
parent 5cf88f0c83
commit f942421bec
2 changed files with 9 additions and 0 deletions

View file

@ -174,6 +174,7 @@
<item name="chipBackgroundColor">@color/white_secondary</item>
<item name="chipIconTintColor">@color/extended_green</item>
<item name="chipTextColor">@color/bg_primary</item>
<item name="android:popupMenuStyle">@style/PopupMenu</item>
</style>
<!-- Night theme -->
@ -343,5 +344,6 @@
<item name="chipBackgroundColor">@android:color/black</item>
<item name="chipIconTintColor">@color/white_lightest</item>
<item name="chipTextColor">@color/white_secondary</item>
<item name="android:popupMenuStyle">@style/PopupMenu.Dark</item>
</style>
</resources>

View file

@ -203,4 +203,11 @@
<item name="android:windowBackground">@null</item>
</style>
<style name="PopupMenu" parent="ThemeOverlay.AppCompat">
<item name="android:popupBackground">?windowBackgroundForced</item>
</style>
<style name="PopupMenu.Dark" parent="ThemeOverlay.AppCompat.Dark">
<item name="android:popupBackground">?windowBackgroundForced</item>
</style>
</resources>