aboutsummaryrefslogtreecommitdiff
path: root/src/android/app
diff options
context:
space:
mode:
authorxbzk <xbzk@eden-emu.dev>2026-08-23 00:29:59 +0200
committercrueter <crueter@eden-emu.dev>2026-08-23 00:29:59 +0200
commit5b86242313ecc8fd81c90e4678dcd2e59dcb13bb (patch)
treeb860b0a628b00792af9c82b3796b2b187de381e1 /src/android/app
parentd24e79c99140208f6c0c17cb784faef3d391658c (diff)
[android, ui] remove the wash (white tint) of focused game cards (#4285)
- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- This removes the ugly wash from focused game cards, without removing the interaction's cool ripple effects. I've stumbled upon a reddit complaining about it, and in fact i always hated it but hadn't realized yet. It happens to any layout. Joypad users notice more since navigation consists on focusing cards. Carousel users notice even more coz cards are bigger and always focused. Border is more than enough to highlight a card, and we want to cherish colors just like creator artists wanted it to be, right? No chance of bugs. No chance of disagreement (¬¬). Approve it already so Youtube videos with carousel thumbs get prettier earlier ^^. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4285 Reviewed-by: Samuel <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/res/color/game_card_ripple.xml8
-rw-r--r--src/android/app/src/main/res/layout-land/card_game_carousel.xml1
-rw-r--r--src/android/app/src/main/res/layout/card_game_carousel.xml1
-rw-r--r--src/android/app/src/main/res/layout/card_game_grid.xml1
-rw-r--r--src/android/app/src/main/res/layout/card_game_grid_compact.xml1
-rw-r--r--src/android/app/src/main/res/layout/card_game_list.xml1
6 files changed, 13 insertions, 0 deletions
diff --git a/src/android/app/src/main/res/color/game_card_ripple.xml b/src/android/app/src/main/res/color/game_card_ripple.xml
new file mode 100644
index 0000000000..84a5dab29e
--- /dev/null
+++ b/src/android/app/src/main/res/color/game_card_ripple.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true" android:color="?attr/colorControlHighlight" />
+ <item android:state_focused="true" android:color="@android:color/transparent" />
+ <item android:state_selected="true" android:color="@android:color/transparent" />
+ <item android:state_hovered="true" android:color="@android:color/transparent" />
+ <item android:color="@android:color/transparent" />
+</selector>
diff --git a/src/android/app/src/main/res/layout-land/card_game_carousel.xml b/src/android/app/src/main/res/layout-land/card_game_carousel.xml
index 4d8e5fd148..866b189042 100644
--- a/src/android/app/src/main/res/layout-land/card_game_carousel.xml
+++ b/src/android/app/src/main/res/layout-land/card_game_carousel.xml
@@ -10,6 +10,7 @@
android:clipChildren="true"
android:layout_margin="0dp"
app:cardBackgroundColor="@color/eden_card_background"
+ app:rippleColor="@color/game_card_ripple"
app:strokeWidth="1dp"
app:strokeColor="@color/eden_border">
diff --git a/src/android/app/src/main/res/layout/card_game_carousel.xml b/src/android/app/src/main/res/layout/card_game_carousel.xml
index 424d6cadde..4e92a3e209 100644
--- a/src/android/app/src/main/res/layout/card_game_carousel.xml
+++ b/src/android/app/src/main/res/layout/card_game_carousel.xml
@@ -11,6 +11,7 @@
app:cardCornerRadius="16dp"
app:cardPreventCornerOverlap="true"
android:clipChildren="true"
+ app:rippleColor="@color/game_card_ripple"
android:layout_margin="4dp">
<androidx.constraintlayout.widget.ConstraintLayout
diff --git a/src/android/app/src/main/res/layout/card_game_grid.xml b/src/android/app/src/main/res/layout/card_game_grid.xml
index 647f3235c8..69e1919f1c 100644
--- a/src/android/app/src/main/res/layout/card_game_grid.xml
+++ b/src/android/app/src/main/res/layout/card_game_grid.xml
@@ -22,6 +22,7 @@
android:focusable="true"
android:transitionName="card_game"
app:cardCornerRadius="16dp"
+ app:rippleColor="@color/game_card_ripple"
android:foreground="@color/eden_border_gradient_start">
<androidx.constraintlayout.widget.ConstraintLayout
diff --git a/src/android/app/src/main/res/layout/card_game_grid_compact.xml b/src/android/app/src/main/res/layout/card_game_grid_compact.xml
index 5752c9828a..5a86cf6899 100644
--- a/src/android/app/src/main/res/layout/card_game_grid_compact.xml
+++ b/src/android/app/src/main/res/layout/card_game_grid_compact.xml
@@ -22,6 +22,7 @@
android:focusable="true"
android:transitionName="card_game_compact"
app:cardCornerRadius="16dp"
+ app:rippleColor="@color/game_card_ripple"
android:foreground="@color/eden_border_gradient_start">
<androidx.constraintlayout.widget.ConstraintLayout
diff --git a/src/android/app/src/main/res/layout/card_game_list.xml b/src/android/app/src/main/res/layout/card_game_list.xml
index 02aa446e32..8612b51752 100644
--- a/src/android/app/src/main/res/layout/card_game_list.xml
+++ b/src/android/app/src/main/res/layout/card_game_list.xml
@@ -12,6 +12,7 @@
app:cardCornerRadius="16dp"
app:cardElevation="0dp"
app:cardBackgroundColor="@android:color/transparent"
+ app:rippleColor="@color/game_card_ripple"
app:strokeWidth="0dp">
<androidx.constraintlayout.widget.ConstraintLayout