aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/drawable/focus_glow.xml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-22 11:44:09 +0200
committerDanilo M. <danix@danix.xyz>2026-10-22 11:44:09 +0200
commit7c2b685bf8fe61a445034cfad646f24b7eaff843 (patch)
tree7fad457fcb616bbf7d8f44dc8105b9f648afa293 /app/src/main/res/drawable/focus_glow.xml
parentd82dd9f2301336b8345acc38404dbe2fa31fb32e (diff)
downloadmygram-droid-7c2b685bf8fe61a445034cfad646f24b7eaff843.tar.gz
mygram-droid-7c2b685bf8fe61a445034cfad646f24b7eaff843.zip
Back icon in folder view, softer focus, Back returns to Home
From on-device testing: the folder grid had no visible way back, the white focus ring on icons was harsh, and Back on the Liked or Folders tab closed the app. Icon buttons now get a soft rounded highlight, tiles a thinner translucent ring, and Back leaves the app only from Home. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'app/src/main/res/drawable/focus_glow.xml')
-rw-r--r--app/src/main/res/drawable/focus_glow.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/focus_glow.xml b/app/src/main/res/drawable/focus_glow.xml
new file mode 100644
index 0000000..e90b268
--- /dev/null
+++ b/app/src/main/res/drawable/focus_glow.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+ Licensed under the GNU General Public License version 2 only. -->
+<!-- Icon buttons: a soft highlight behind the icon instead of a ring. -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_focused="true">
+ <shape>
+ <corners android:radius="16dp" />
+ <solid android:color="#40FFFFFF" />
+ </shape>
+ </item>
+ <item>
+ <shape>
+ <solid android:color="#00000000" />
+ </shape>
+ </item>
+</selector>