|
@@ -619,21 +619,3 @@ using attributes in your app's theme.
|
|
|
See the "Custom Theme" example in the sample project (open the overflow menu for the theme switcher).
|
|
|
|
|
|
<img src="https://raw.githubusercontent.com/afollestad/material-dialogs/master/art/customtheme.png" width="250px" />
|
|
|
-
|
|
|
-### Widget Color
|
|
|
-
|
|
|
-By default, widgets like CheckBoxes and RadioButtons use your theme's accent color when they are
|
|
|
-checked. You can override that to use whatever color you want. This applies to checkbox prompts,
|
|
|
-single and multiple choice lists, etc. but will not automatically apply to widgets in your own
|
|
|
-custom views.
|
|
|
-
|
|
|
-```xml
|
|
|
-<style name="AppTheme.Custom" parent="Theme.AppCompat">
|
|
|
-
|
|
|
- <item name="md_widget_color">@color/your_color</item>
|
|
|
-
|
|
|
- <!-- Generally this should be avoided, checkboxes should be white or gray when unchecked -->
|
|
|
- <item name="md_widget_color_unchecked">@color/your_color</item>
|
|
|
-
|
|
|
-</style>
|
|
|
-```
|