Fix dialog color problem in night mode.
Assign the suface light and dark color for Dialog. Test: Rebuilt apk, and see color works well on wifi dialog. Fix: 190142194 Change-Id: I43d010c70e22639a29a571bfadb4351f41e1a240
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -32,7 +32,8 @@
|
|||||||
|
|
||||||
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
||||||
<item name="colorAccent">@*android:color/accent_device_default_dark</item>
|
<item name="colorAccent">@*android:color/accent_device_default_dark</item>
|
||||||
<item name="android:colorBackground">?androidprv:attr/colorSurface</item>
|
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
||||||
|
<item name="android:colorBackground">@*android:color/surface_dark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Material theme for the pages containing TabLayout and ViewPager -->
|
<!-- Material theme for the pages containing TabLayout and ViewPager -->
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
<style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
|
||||||
<item name="colorAccent">@*android:color/accent_device_default_light</item>
|
<item name="colorAccent">@*android:color/accent_device_default_light</item>
|
||||||
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
<item name="android:colorError">@color/settings_dialog_colorError</item>
|
||||||
<item name="android:colorBackground">?androidprv:attr/colorSurface</item>
|
<item name="android:colorBackground">@*android:color/surface_light</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.AlertDialog" parent="Theme.AlertDialog.Base">
|
<style name="Theme.AlertDialog" parent="Theme.AlertDialog.Base">
|
||||||
|
Reference in New Issue
Block a user