Enhance cursors

This commit is contained in:
Stefan Niedermann 2020-06-02 20:35:14 +02:00
parent 88370cfcc3
commit e6c117bded
4 changed files with 9 additions and 0 deletions

View file

@ -23,6 +23,7 @@
android:inputType="textMultiLine|textCapSentences"
android:padding="16dp"
android:textColor="@color/fg_default"
android:theme="@style/EditText"
tools:text="@tools:sample/lorem/random" />
</ScrollView>
@ -32,6 +33,7 @@
android:layout_gravity="bottom|end"
android:translationY="-56dp"
android:visibility="gone"
app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp"
tools:visibility="visible" />
@ -41,6 +43,7 @@
style="@style/fab"
android:layout_gravity="bottom|end"
android:visibility="gone"
app:backgroundTint="@color/defaultBrand"
app:fabSize="mini"
app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp"
tools:visibility="visible" />

View file

@ -5,6 +5,7 @@
<color name="primary">#121212</color>
<color name="accent">#f5f5f5</color>
<color name="cursor">#55eeeeff</color>
<color name="bg_highlighted">#2a2a2a</color>
<color name="bg_normal">#121212</color>
<color name="bg_attention">#ff3333</color>

View file

@ -7,6 +7,7 @@
<color name="defaultBrand">#0082C9</color>
<color name="cursor">#44111122</color>
<color name="bg_highlighted">#eee</color>
<color name="bg_normal">#ffffff</color>
<color name="bg_attention">#d40000</color>

View file

@ -13,6 +13,10 @@
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">@bool/isDayMode</item>
</style>
<style name="EditText" parent="AppTheme">
<item name="android:textColorHighlight">@color/cursor</item>
</style>
<style name="fab">
<item name="android:layout_margin">16dp</item>
<item name="android:layout_width">wrap_content</item>