Customize the attrs.xml/ styles.xml/ styles.xml-night

Insert a new attribute "menuTextColor" to adjust colors of menu items in the Navigation Drawer
in DarkMode.
This commit is contained in:
ErikWaegerle 2020-08-29 13:43:20 +02:00
parent cafb8cb10f
commit b9e8324b27
3 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,7 @@
<item name="android:itemBackground">@color/cardview_dark_background</item>
<item name="backgroundTutorialSlide">@color/colorPrimaryDark</item>
<item name="backgroundTutorialStars">@color/colorPrimaryDark</item>
<item name="menuTextColor">@color/white</item>
</style>
<style name="ToolbarStyle" parent="Widget.AppCompat.ActionBar">

View file

@ -13,6 +13,7 @@
<attr name="rankingStarNotSelected" format="color"/>
<attr name="inactiveButtonColor" format="color"/>
<attr name="activeButtonColor" format="color"/>
<attr name="menuTextColor" format="color"/>
<attr name="highlightedButtonBorder" format="color"/>
<attr name="backgroundTutorialSlide" format="color"/>
<attr name="backgroundTutorialStars" format="color"/>

View file

@ -22,6 +22,7 @@
<item name="actionBarTheme">@style/ToolbarStyle</item>
<item name="backgroundTutorialSlide">@color/colorAccent</item>
<item name="backgroundTutorialStars">@color/white</item>
<item name="menuTextColor">@null</item>
</style>
<style name="ToolbarStyle" parent="Widget.AppCompat.ActionBar">