From 4dfb3cc972de12f3c6eacee0ddd7716a5d28794e Mon Sep 17 00:00:00 2001 From: Soitora Date: Sat, 12 Jun 2021 15:45:26 +0200 Subject: [PATCH] Improvements to the new library item selectors (#5379) * Increase card selector radius * Add themed overlay to library selector --- app/src/main/res/color/selector_overlay.xml | 4 ++++ .../res/drawable/library_item_selector.xml | 6 +++--- .../library_item_selector_overlay.xml | 21 +++++++++++++++++++ .../layout/source_comfortable_grid_item.xml | 1 + .../res/layout/source_compact_grid_item.xml | 1 + app/src/main/res/values/dimens.xml | 1 + 6 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/color/selector_overlay.xml create mode 100644 app/src/main/res/drawable/library_item_selector_overlay.xml diff --git a/app/src/main/res/color/selector_overlay.xml b/app/src/main/res/color/selector_overlay.xml new file mode 100644 index 000000000..69bad1405 --- /dev/null +++ b/app/src/main/res/color/selector_overlay.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/library_item_selector.xml b/app/src/main/res/drawable/library_item_selector.xml index 7de3c91ba..11714e2ee 100644 --- a/app/src/main/res/drawable/library_item_selector.xml +++ b/app/src/main/res/drawable/library_item_selector.xml @@ -10,7 +10,7 @@ android:bottom="2dp" android:left="2dp"> - + @@ -22,7 +22,7 @@ android:bottom="2dp" android:left="2dp"> - + @@ -33,7 +33,7 @@ android:bottom="2dp" android:left="2dp"> - + diff --git a/app/src/main/res/drawable/library_item_selector_overlay.xml b/app/src/main/res/drawable/library_item_selector_overlay.xml new file mode 100644 index 000000000..ac49770e0 --- /dev/null +++ b/app/src/main/res/drawable/library_item_selector_overlay.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/source_comfortable_grid_item.xml b/app/src/main/res/layout/source_comfortable_grid_item.xml index 409cf083e..df786db6b 100644 --- a/app/src/main/res/layout/source_comfortable_grid_item.xml +++ b/app/src/main/res/layout/source_comfortable_grid_item.xml @@ -6,6 +6,7 @@ android:layout_height="wrap_content" android:layout_margin="2dp" android:background="@drawable/library_item_selector" + android:foreground="@drawable/library_item_selector_overlay" android:padding="4dp"> 4dp 4dp + 6dp 8dp 56dp