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!ia0y~yU{C>J4mJh`hKCF@W-u@?)Ofl$hE&A8z3Rx-pdiwc zsQUdd$;J=ozi`QBEe-J&G!fT z^e0t`T;5#ebILlc=e(4Yv~g+8J%KQ8tqX3ddt&}i{}`E;vACvwLF=M5BB@I?R?99@ k+Fu^H_*#eH#76eZr|0MIy7^g-fq{X+)78&qol`;+05JbXjQ{`u literal 0 HcmV?d00001 diff --git a/Source/Android/app/src/main/res/drawable-mdpi/ic_back.png b/Source/Android/app/src/main/res/drawable-mdpi/ic_back.png new file mode 100644 index 0000000000000000000000000000000000000000..c0848a19a47a22dcfeec42804eec2f591b9490c1 GIT binary patch literal 142 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJoLOop^Ln`8u6C_xjx&HkB ze_y=g^~IwrnHIFoZ%j%qsqA8y^>E*dPa=(hhc_}+N%vI}1eqb9pf`JWx(Ei{Jk0yGYcZi+a~NI^S=9 zv3mmB$KR!s_wlw@=pU(8yvO}9uH(B=$N#5Wo*EYStY2>1ANh@Os%77WY1iM>9Z8d{ zd(-s6&s(YygU-Gyp_3aBR@`Kf&FOVymU`?MP^I3KBW zOjht~LSq;_s(JdQ&-IAc<1a6D<;Au8E-(LH6C;ojx5i@9y-hPBGFA2_2O7%1ytVCe z`BH(C4l2wOd0dQeGTfGU-*&q{)kyf|g8%xNNb^pu9z`($;;wdAi V;|%Tl9uKF0xSp + 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 @@ - - - - - -