aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/drawable/bg_field.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/drawable/bg_field.xml')
-rw-r--r--app/src/main/res/drawable/bg_field.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/bg_field.xml b/app/src/main/res/drawable/bg_field.xml
new file mode 100644
index 0000000..e656ad4
--- /dev/null
+++ b/app/src/main/res/drawable/bg_field.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Text-field box. Accent border when focused, neutral otherwise. -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_focused="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/surface_alt"/>
+ <stroke android:width="2dp" android:color="@color/accent"/>
+ <corners android:radius="@dimen/field_radius"/>
+ </shape>
+ </item>
+ <item>
+ <shape android:shape="rectangle">
+ <solid android:color="@color/surface_alt"/>
+ <stroke android:width="1dp" android:color="@color/stroke"/>
+ <corners android:radius="@dimen/field_radius"/>
+ </shape>
+ </item>
+</selector>