From 9fcc3e2e92d8c5fce4fe9b8887657242723f4a09 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Sat, 10 Sep 2022 17:01:24 -0400 Subject: [PATCH] Android: Add custom window animation to alert dialogs --- .../Android/app/src/main/res/anim/fade_in.xml | 18 ++++++++++++++++++ .../Android/app/src/main/res/anim/fade_out.xml | 18 ++++++++++++++++++ .../src/main/res/values-night-v31/themes.xml | 2 +- .../app/src/main/res/values-v31/themes.xml | 2 +- .../Android/app/src/main/res/values/styles.xml | 10 ++++++++++ .../Android/app/src/main/res/values/themes.xml | 6 +++--- 6 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 Source/Android/app/src/main/res/anim/fade_in.xml create mode 100644 Source/Android/app/src/main/res/anim/fade_out.xml diff --git a/Source/Android/app/src/main/res/anim/fade_in.xml b/Source/Android/app/src/main/res/anim/fade_in.xml new file mode 100644 index 0000000000..3767d530d5 --- /dev/null +++ b/Source/Android/app/src/main/res/anim/fade_in.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/anim/fade_out.xml b/Source/Android/app/src/main/res/anim/fade_out.xml new file mode 100644 index 0000000000..fab1686871 --- /dev/null +++ b/Source/Android/app/src/main/res/anim/fade_out.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values-night-v31/themes.xml b/Source/Android/app/src/main/res/values-night-v31/themes.xml index fac737af73..c54c191654 100644 --- a/Source/Android/app/src/main/res/values-night-v31/themes.xml +++ b/Source/Android/app/src/main/res/values-night-v31/themes.xml @@ -27,7 +27,7 @@ @color/m3_sys_color_dynamic_dark_on_surface_variant @color/m3_sys_color_dynamic_dark_secondary - @style/ThemeOverlay.Material3.MaterialAlertDialog + @style/MaterialDialog @style/ThemeOverlay.Material3 diff --git a/Source/Android/app/src/main/res/values-v31/themes.xml b/Source/Android/app/src/main/res/values-v31/themes.xml index 0b7905858d..2e75d2d205 100644 --- a/Source/Android/app/src/main/res/values-v31/themes.xml +++ b/Source/Android/app/src/main/res/values-v31/themes.xml @@ -27,7 +27,7 @@ @color/m3_sys_color_dynamic_light_on_surface_variant @color/m3_sys_color_dynamic_light_secondary - @style/ThemeOverlay.Material3.MaterialAlertDialog + @style/MaterialDialog @style/ThemeOverlay.Material3 diff --git a/Source/Android/app/src/main/res/values/styles.xml b/Source/Android/app/src/main/res/values/styles.xml index 55a8a35754..63709b9e37 100644 --- a/Source/Android/app/src/main/res/values/styles.xml +++ b/Source/Android/app/src/main/res/values/styles.xml @@ -32,6 +32,16 @@ @style/DolphinButton @style/DolphinButton @style/DolphinButton + @style/DialogAnimation + + + + + @@ -97,7 +97,7 @@ @color/green_onSurfaceVariant @color/green_secondary - @style/ThemeOverlay.Material3.MaterialAlertDialog + @style/MaterialDialog @style/ThemeOverlay.Material3 @@ -131,7 +131,7 @@ @color/pink_onSurfaceVariant @color/pink_secondary - @style/ThemeOverlay.Material3.MaterialAlertDialog + @style/MaterialDialog @style/ThemeOverlay.Material3