|
1 | 1 | <resources> |
2 | 2 |
|
3 | | - <!-- Base application theme with DayNight support for system theme following --> |
4 | | - <style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar"> |
| 3 | + <!-- Base application theme with MaterialComponents DayNight for automatic dark mode --> |
| 4 | + <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> |
5 | 5 | <!-- Customize your theme here. --> |
6 | 6 | <item name="colorPrimary">@color/primary</item> |
7 | 7 | <item name="colorPrimaryDark">@color/primary_dark</item> |
8 | 8 | <item name="colorAccent">@color/accent</item> |
| 9 | + <!-- MaterialComponents uses colorSecondary for some widgets like FAB --> |
| 10 | + <item name="colorSecondary">@color/accent</item> |
9 | 11 | <item name="android:windowBackground">@color/background</item> |
10 | 12 | <item name="android:colorBackground">@color/background</item> |
11 | 13 | <!-- Preference list styling --> |
12 | 14 | <item name="android:listViewStyle">@style/AppListView</item> |
13 | 15 | </style> |
14 | 16 |
|
15 | | - <style name="AppListView" parent="Widget.AppCompat.ListView"> |
| 17 | + <style name="AppListView" parent="android:Widget.ListView"> |
16 | 18 | <item name="android:background">@color/background</item> |
17 | 19 | </style> |
18 | 20 |
|
|
21 | 23 | <item name="windowNoTitle">true</item> |
22 | 24 | </style> |
23 | 25 |
|
24 | | - <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"></style> |
| 26 | + <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.MaterialComponents.Dark.ActionBar"></style> |
25 | 27 |
|
26 | | - <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"></style> |
| 28 | + <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.MaterialComponents.Light"></style> |
27 | 29 |
|
28 | 30 | <style name="PickerDialogTheme" parent="AppTheme.NoActionBar"> |
29 | 31 | <item name="android:textSize">20sp</item> |
30 | 32 | <item name="android:labelTextSize">20dp</item> |
31 | 33 | </style> |
32 | 34 |
|
33 | | - <style name="ToolbarTitle" parent="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"> |
| 35 | + <style name="ToolbarTitle" parent="@style/TextAppearance.MaterialComponents.Headline6"> |
34 | 36 | <item name="android:textSize">20sp</item> |
35 | 37 | </style> |
36 | 38 |
|
|
0 commit comments