Skip to content

Commit 4dd4e1d

Browse files
committed
Setup screens: a thin line in the button's shape marks the D-pad selection too
1 parent 375ed4a commit 4dd4e1d

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎SetupTheme/res/drawable/andr36oid_setup_focus.xml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- The D-pad selection: the button itself lights up a little, in its own shape. The
3-
inset matches the Material button background (4dp sides, 6dp top and bottom), so the
4-
tint covers the button and not the empty space around it. -->
2+
<!-- The D-pad selection: the button lights up a little and gets a thin line, both in
3+
its own shape. The inset matches the Material button background (4dp sides, 6dp top
4+
and bottom), so they sit on the button and not around the empty space next to it. -->
55
<selector xmlns:android="http://schemas.android.com/apk/res/android">
66
<item android:state_focused="true">
77
<inset
@@ -11,6 +11,9 @@
1111
android:insetBottom="6dp">
1212
<shape android:shape="rectangle">
1313
<solid android:color="@color/andr36oid_setup_focus_fill" />
14+
<stroke
15+
android:width="2dp"
16+
android:color="@color/andr36oid_setup_focus_line" />
1417
<corners android:radius="@dimen/sud_glif_v3_button_corner_radius" />
1518
</shape>
1619
</inset>

‎SetupTheme/res/values-night/colors.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
<color name="andr36oid_setup_background">#ff000000</color>
44
<color name="andr36oid_setup_accent">#ffffab5e</color>
55
<color name="andr36oid_setup_focus_fill">#33ffffff</color>
6+
<color name="andr36oid_setup_focus_line">#ffffffff</color>
67
</resources>

‎SetupTheme/res/values/colors.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<color name="andr36oid_setup_accent">#ffb34700</color>
55
<!-- The D-pad selection's tint (andr36oid_setup_focus) -->
66
<color name="andr36oid_setup_focus_fill">#1f000000</color>
7+
<color name="andr36oid_setup_focus_line">#de000000</color>
78
<color name="sud_glif_v3_dialog_background_color_dark">#ff000000</color>
89
</resources>

0 commit comments

Comments
 (0)