Heavily improve dialogs

Both improve and use dialogs
- The AlertDialog style now properly colors dialogs with the primary coler
- The accent & blacklist dialogs are now based on AlertDialog for their buttons, reducing layout complexity
This commit is contained in:
OxygenCobalt
2021-03-28 18:47:53 -06:00
parent 53ec1aa8a5
commit 4d92df7896
8 changed files with 72 additions and 122 deletions
-23
View File
@@ -36,28 +36,5 @@
tools:itemCount="18"
tools:listitem="@layout/item_accent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:padding="@dimen/padding_small">
<Button
android:id="@+id/accent_cancel"
style="@style/Widget.Button.Dialog"
android:layout_marginEnd="@dimen/margin_small"
android:text="@android:string/cancel"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/accent_confirm" />
<Button
android:id="@+id/accent_confirm"
style="@style/Widget.Button.Dialog"
android:text="@android:string/ok"
app:layout_constraintBottom_toBottomOf="@+id/accent_cancel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/accent_cancel" />
</LinearLayout>
</LinearLayout>
</layout>