Tint preference dialogs
Apply the accent color to EditTextPreference and ListPreference. They use android.app.AlertDialog.Builder, not android.support.v7.app.AlertDialog.Builder, so the theme has to be specified using "android:alertDialogTheme" attribute in addition to AppCompat's "alertDialogTheme". For the same reason those dialogs won't be tinted on pre-Lollipop Android versions.
This commit is contained in:
parent
04e8b591ab
commit
0b7c5fb616
@ -3,6 +3,7 @@
|
||||
|
||||
<style name="AppThemeDark" parent="AppBaseThemeDark">
|
||||
<!-- customizations that are not API-level specific go here. -->
|
||||
<item name="android:alertDialogTheme">@style/AlertDialogThemeDark</item>
|
||||
<item name="android:colorEdgeEffect">@color/fdroid_blue</item>
|
||||
<item name="android:colorControlActivated">@color/fdroid_green</item>
|
||||
<item name="android:colorControlHighlight">@color/fdroid_green</item>
|
||||
@ -10,7 +11,8 @@
|
||||
|
||||
<style name="AppThemeLight" parent="AppBaseThemeLight">
|
||||
<!-- customizations that are not API-level specific go here. -->
|
||||
<item name="android:alertDialogTheme">@style/AlertDialogThemeLight</item>
|
||||
<item name="android:colorEdgeEffect">@color/fdroid_blue</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user