From fde39b455c438c6310c55ae9e4476757bc47e116 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Wed, 23 Mar 2022 12:41:21 -0400 Subject: [PATCH] Begin style migration to Material3 Use large card view rounded corner guidelines Fix action bar theming Needed to import android back button clip art to fix material 3 theming issue. The DolphinSettingsBase style used to inherit from the Theme.MaterialComponents.DayNight.DarkActionBar theme which would provide the light text and icons but this is no longer available with Material 3. Fit box art more snugly in CardView Change card height to match cover art Add padding to top of games list recyclerview --- .../src/main/res/drawable-anydpi/ic_back.xml | 12 ++++++++++++ .../src/main/res/drawable-hdpi/ic_back.png | Bin 0 -> 181 bytes .../src/main/res/drawable-mdpi/ic_back.png | Bin 0 -> 142 bytes .../src/main/res/drawable-xhdpi/ic_back.png | Bin 0 -> 203 bytes .../src/main/res/drawable-xxhdpi/ic_back.png | Bin 0 -> 306 bytes .../app/src/main/res/layout/card_game.xml | 18 ++++++++++-------- .../app/src/main/res/layout/fragment_grid.xml | 3 ++- .../app/src/main/res/values/styles.xml | 16 +++++++++------- 8 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 Source/Android/app/src/main/res/drawable-anydpi/ic_back.xml create mode 100644 Source/Android/app/src/main/res/drawable-hdpi/ic_back.png create mode 100644 Source/Android/app/src/main/res/drawable-mdpi/ic_back.png create mode 100644 Source/Android/app/src/main/res/drawable-xhdpi/ic_back.png create mode 100644 Source/Android/app/src/main/res/drawable-xxhdpi/ic_back.png diff --git a/Source/Android/app/src/main/res/drawable-anydpi/ic_back.xml b/Source/Android/app/src/main/res/drawable-anydpi/ic_back.xml new file mode 100644 index 0000000000..e15be555e1 --- /dev/null +++ b/Source/Android/app/src/main/res/drawable-anydpi/ic_back.xml @@ -0,0 +1,12 @@ + + + diff --git a/Source/Android/app/src/main/res/drawable-hdpi/ic_back.png b/Source/Android/app/src/main/res/drawable-hdpi/ic_back.png new file mode 100644 index 0000000000000000000000000000000000000000..dd4ead3bf4807220aac768ceff6fd57b1c7ad34c GIT binary patch literal 181 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBYCK&WLn`9lUUlSZP!MTJ)PG^R z%kAzN?vmx62d~cf!SPb_4EyGl2jtCL6_lhI1U~!Ky<2qbPU*ftk>IkA=KBME`je_e zE^n^#Ic1&Jb6(0x+PJjlo|Ar*1S2@Cd8XF^cP{JALItEWyKbLh*2~7a8 C_E3@l literal 0 HcmV?d00001 diff --git a/Source/Android/app/src/main/res/drawable-xxhdpi/ic_back.png b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_back.png new file mode 100644 index 0000000000000000000000000000000000000000..8316057723faa9cd0882b3860e7b34131c4e9df4 GIT binary patch literal 306 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@ZgvM!KRsO>Ln`9lUU2L>6d>SwvFGi^ zM~|drICk0PW|%*mcj~{RijB`xULJ{8aut(b$X}5K>1A-p6fAso`MpG3;k)yHU%g-I zDWlZudqgqFTzL8WYu^^X_cD0&XZzc)v7ARd1=JId{8T>orE1RFecFu{oR3sGCM) + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" + tools:layout_width="160dp" + android:layout_height="249dp" + android:transitionName="card_game" + android:focusable="true" + android:clickable="true" + android:foreground="?android:attr/selectableItemBackground" + app:cardCornerRadius="8dp"> + tools:listitem="@layout/card_game" + android:paddingTop="8dp"/> diff --git a/Source/Android/app/src/main/res/values/styles.xml b/Source/Android/app/src/main/res/values/styles.xml index faa9fcf033..161afa826f 100644 --- a/Source/Android/app/src/main/res/values/styles.xml +++ b/Source/Android/app/src/main/res/values/styles.xml @@ -2,7 +2,7 @@ - - - - - -