
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.
19 lines
818 B
XML
19 lines
818 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
|
|
<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>
|
|
</style>
|
|
|
|
<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>
|