set message input cursor color to text color

This commit is contained in:
Daniel Gultsch 2024-05-02 10:56:39 +02:00
parent 073a445a6d
commit 0b673ef1ab
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<size android:width="2dp" />
<!-- width of the original cursor was measured on a Pixel 6a because its not documented anywhere -->
<solid android:color="?colorOnTertiaryContainer" />
</shape>

View file

@ -100,9 +100,10 @@
android:inputType="textShortMessage|textMultiLine|textCapSentences" android:inputType="textShortMessage|textMultiLine|textCapSentences"
android:maxLines="8" android:maxLines="8"
android:minHeight="32dp" android:minHeight="32dp"
android:minLines="1"
android:textColor="?colorOnTertiaryContainer" android:textColor="?colorOnTertiaryContainer"
android:textColorHint="@color/hint_on_tertiary_container" android:textColorHint="@color/hint_on_tertiary_container"
android:minLines="1"> android:textCursorDrawable="@drawable/cursor_on_tertiary_container">
<requestFocus /> <requestFocus />
</eu.siacs.conversations.ui.widget.EditMessage> </eu.siacs.conversations.ui.widget.EditMessage>