mirror of
https://github.com/izzy2lost/PSX2.git
synced 2026-07-05 15:18:36 -07:00
better indicator of in focus buttons in controllers quick actions
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_focused="true">
|
||||
<shape android:shape="rectangle">
|
||||
<stroke android:width="3dp" android:color="@android:color/white" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -35,6 +35,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="Pause/Play"
|
||||
app:srcCompat="@drawable/play_pause_24px"
|
||||
android:foreground="@drawable/fab_focus_indicator"
|
||||
android:layout_marginEnd="12dp" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
@@ -44,6 +45,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="Power"
|
||||
app:srcCompat="@drawable/ic_power"
|
||||
app:materialThemeOverlay="@style/ThemeOverlay.Material3Expressive.FloatingActionButton.Tertiary"
|
||||
android:foreground="@drawable/fab_focus_indicator"
|
||||
android:layout_marginEnd="12dp" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
@@ -52,7 +55,9 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="Reboot"
|
||||
app:srcCompat="@drawable/ic_reboot" />
|
||||
app:srcCompat="@drawable/ic_reboot"
|
||||
app:materialThemeOverlay="@style/ThemeOverlay.Material3Expressive.FloatingActionButton.Secondary"
|
||||
android:foreground="@drawable/fab_focus_indicator" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Row 2: Renderer toggle buttons -->
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
android:contentDescription="Reboot"
|
||||
app:srcCompat="@drawable/ic_reboot"
|
||||
app:materialThemeOverlay="@style/ThemeOverlay.Material3Expressive.FloatingActionButton.Secondary"
|
||||
android:foreground="@drawable/fab_focus_indicator"
|
||||
android:layout_marginEnd="12dp" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
@@ -49,7 +50,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="Power"
|
||||
app:srcCompat="@drawable/ic_power"
|
||||
app:materialThemeOverlay="@style/ThemeOverlay.Material3Expressive.FloatingActionButton.Tertiary" />
|
||||
app:materialThemeOverlay="@style/ThemeOverlay.Material3Expressive.FloatingActionButton.Tertiary"
|
||||
android:foreground="@drawable/fab_focus_indicator" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
Reference in New Issue
Block a user