From 6848e696388ef7d17def1aa760ec06411649ed55 Mon Sep 17 00:00:00 2001 From: lynxnb Date: Fri, 21 Jan 2022 19:25:46 +0100 Subject: [PATCH] Improve design consistency across the app Game images, buttons and dialogs now have a consistent corner radius, across all game list layouts. --- app/src/main/res/layout/app_dialog.xml | 2 +- app/src/main/res/layout/app_item_grid.xml | 2 +- .../main/res/layout/app_item_grid_compact.xml | 3 +- app/src/main/res/layout/app_item_linear.xml | 2 +- app/src/main/res/layout/gpu_driver_item.xml | 2 +- app/src/main/res/layout/main_activity.xml | 2 +- app/src/main/res/values/dimens.xml | 4 +-- app/src/main/res/values/styles.xml | 29 +++++++++++++++++-- app/src/main/res/values/themes.xml | 10 ++++--- 9 files changed, 41 insertions(+), 15 deletions(-) diff --git a/app/src/main/res/layout/app_dialog.xml b/app/src/main/res/layout/app_dialog.xml index bd7e7e56..c1f47237 100644 --- a/app/src/main/res/layout/app_dialog.xml +++ b/app/src/main/res/layout/app_dialog.xml @@ -14,7 +14,7 @@ android:layout_height="150dp" android:contentDescription="@string/icon" android:focusable="false" - app:shapeAppearanceOverlay="@style/RoundedAppImage" + app:shapeAppearance="?attr/shapeAppearanceMediumComponent" tools:src="@drawable/default_icon" /> + app:cardCornerRadius="@dimen/cornerRadiusMedium" + app:cardElevation="2dp"> + android:padding="@dimen/cornerRadiusMedium"> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 7f487dda..79f1a77b 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -2,6 +2,6 @@ 8dp 10dp - 12dp - 8dp + 6dp + 12dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 68ad86f9..d1b5e004 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,9 +1,32 @@ - - + + + + + + + + + + +