mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix outlined editable text boxes in dark themes
This commit is contained in:
parent
990d5ebdd7
commit
67acd66d9b
3 changed files with 10 additions and 3 deletions
7
app/src/main/res/color/text_box_stroke_selector.xml
Normal file
7
app/src/main/res/color/text_box_stroke_selector.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="?colorAccent" android:state_focused="true"/>
|
||||
<item android:alpha="0.87" android:color="?attr/colorOnSurface" android:state_hovered="true"/>
|
||||
<item android:alpha="0.12" android:color="?attr/colorOnSurface" android:state_enabled="false"/>
|
||||
<item android:alpha="0.38" android:color="?attr/colorOnSurface"/>
|
||||
</selector>
|
|
@ -13,7 +13,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:hint="@string/title"
|
||||
app:boxStrokeColor="?colorAccent"
|
||||
app:boxStrokeColor="@color/text_box_stroke_selector"
|
||||
app:endIconMode="clear_text"
|
||||
app:hintEnabled="false"
|
||||
app:hintTextColor="?colorAccent">
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:hint="@string/username"
|
||||
app:boxStrokeColor="@color/colorAccent"
|
||||
app:boxStrokeColor="@color/text_box_stroke_selector"
|
||||
app:hintTextColor="@color/colorAccent">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
|
@ -38,7 +38,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:hint="@string/password"
|
||||
app:boxStrokeColor="?colorAccent"
|
||||
app:boxStrokeColor="@color/text_box_stroke_selector"
|
||||
app:endIconMode="password_toggle"
|
||||
app:hintTextColor="?colorAccent">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue