1<resources> 2 <style name="Theme.Settings" parent="@android:style/Theme.DeviceDefault.Settings"> 3 <!-- For AndroidX AlertDialogs --> 4 <item name="alertDialogTheme">@style/Theme.AppCompat.DayNight.Dialog.Alert</item> 5 </style> 6 7 <!-- Override the main app's style for ActionPrimaryButton to get around lack of new style 8 support in robolectric --> 9 <style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button"/> 10 11 <!-- Test version of Theme.Settings.Home. Needed to build homepage activity in Robolectric --> 12 <style name="Theme.Settings.Home" parent="Theme.AppCompat.DayNight.NoActionBar"> 13 <item name="colorPrimary">#ffffff</item> 14 <item name="colorPrimaryDark">#ffffff</item> 15 <item name="colorAccent">#ffffff</item> 16 <item name="preferenceTheme">@style/SettingsPreferenceTheme</item> 17 <item name="android:windowLightStatusBar">true</item> 18 <!-- Define this color for material design --> 19 <item name="colorPrimaryVariant">@android:color/white</item> 20 </style> 21 22 <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar"> 23 <item name="android:textColorPrimary">@android:color/white</item> 24 <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item> 25 <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item> 26 <item name="switchBarBackgroundColor">?android:attr/textColorSecondary</item> 27 <item name="switchBarBackgroundActivatedColor">?android:attr/colorAccent</item> 28 <item name="switchBarRestrictionIcon">@drawable/ic_help</item> 29 </style> 30 31</resources> 32