Change MainActivity's Toolbar popupTheme to match current theme
This commit is contained in:
parent
0096459ded
commit
baa2530850
@ -19,7 +19,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay"
|
||||
app:popupTheme="?themedPopupOverlay"
|
||||
app:contentInsetStart="0dp"
|
||||
app:layout_scrollFlags=""> <!-- None intentionally -->
|
||||
|
||||
|
||||
@ -15,5 +15,6 @@
|
||||
</declare-styleable>
|
||||
|
||||
<attr name="themedIconTint" format="reference|color"/>
|
||||
<attr name="themedPopupOverlay" format="reference"/>
|
||||
|
||||
</resources>
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
is not supported below 21. -->
|
||||
<item name="themedIconTint">@color/icon_color_active_light</item>
|
||||
<item name="android:textColorHint">@color/text_color_disabled_light</item>
|
||||
<item name="themedPopupOverlay">@style/ThemeOverlay.AppCompat.Light</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Dark" parent="Theme.AppCompat.NoActionBar">
|
||||
@ -32,6 +33,7 @@
|
||||
is not supported below 21.-->
|
||||
<item name="themedIconTint">@color/icon_color_active_dark</item>
|
||||
<item name="android:textColorHint">@color/text_color_disabled_dark</item>
|
||||
<item name="themedPopupOverlay">@style/ThemeOverlay.AppCompat.Dark</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user