Let AppTheme extend DayNightTheme and add a new actionbar style with the attributes the AppTheme previously inherited from DarkActionBar.
This commit is contained in:
parent
91f7cc6d2b
commit
c0faeacce8
1 changed files with 7 additions and 1 deletions
|
@ -1,11 +1,17 @@
|
|||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<style name="AppTheme" parent="Theme.AppCompat.DayNight">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimaryDark</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="actionBarTheme">@style/ToolbarStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="ToolbarStyle" parent="Widget.AppCompat.ActionBar">
|
||||
<item name="android:textColorPrimary">@color/white</item>
|
||||
<item name="colorControlNormal">@color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
|
|
Loading…
Reference in a new issue