Fix global colors in preference dialogs

This commit is contained in:
CappielloAntonio 2021-08-11 16:33:34 +02:00
parent 8f8e78d6be
commit a6e45e622d
3 changed files with 13 additions and 1 deletions

View file

@ -51,7 +51,7 @@ public class ServerSignupDialog extends DialogFragment {
bind = DialogServerSignupBinding.inflate(LayoutInflater.from(requireContext()));
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_Dialog);
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AppTheme_AlertDialog);
builder.setView(bind.getRoot())
.setTitle("Add server")

View file

@ -33,6 +33,12 @@
<item name="android:windowMinWidthMinor">82%</item>
</style>
<style name="AppTheme.AlertDialog" parent="Theme.AppCompat.DayNight.Dialog.Alert">
<item name="android:windowBackground">@drawable/dialog_shape</item>
<item name="android:windowMinWidthMajor">86%</item>
<item name="android:windowMinWidthMinor">86%</item>
</style>
<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">0.5dp</item>

View file

@ -33,6 +33,12 @@
<item name="android:windowMinWidthMinor">82%</item>
</style>
<style name="AppTheme.AlertDialog" parent="Theme.AppCompat.DayNight.Dialog.Alert">
<item name="android:windowBackground">@drawable/dialog_shape</item>
<item name="android:windowMinWidthMajor">86%</item>
<item name="android:windowMinWidthMinor">86%</item>
</style>
<style name="Divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">0.5dp</item>