Improve input field
This commit is contained in:
parent
dd821d6238
commit
5685e50140
2 changed files with 10 additions and 6 deletions
|
@ -2069,7 +2069,7 @@ public class ConversationFragment extends XmppFragment
|
|||
conversation.setReplyTo(message);
|
||||
if (message == null) {
|
||||
binding.contextPreview.setVisibility(View.GONE);
|
||||
binding.textsend.setBackgroundResource(R.drawable.textsend);
|
||||
//binding.textsend.setBackgroundResource(R.drawable.textsend);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3794,7 +3794,7 @@ public class ConversationFragment extends XmppFragment
|
|||
final var colors = MaterialColors.getColorRoles(activity, accountColor);
|
||||
final var accent = activity.isDark() ? ColorUtils.blendARGB(colors.getAccentContainer(), bg, 1.0f - Math.max(0.25f, Color.alpha(accountColor) / 255.0f)) : colors.getAccentContainer();
|
||||
cursord.setTintList(ColorStateList.valueOf(colors.getOnAccentContainer()));
|
||||
binding.inputLayout.setBackgroundTintList(ColorStateList.valueOf(accent));
|
||||
//binding.inputLayout.setBackgroundTintList(ColorStateList.valueOf(accent));
|
||||
|
||||
binding.textinputSubject.setTextColor(colors.getOnAccentContainer());
|
||||
binding.textinput.setTextColor(colors.getOnAccentContainer());
|
||||
|
@ -3803,7 +3803,7 @@ public class ConversationFragment extends XmppFragment
|
|||
binding.textInputHint.setTextColor(colors.getOnAccentContainer());
|
||||
} else {
|
||||
cursord.setTintList(ColorStateList.valueOf(MaterialColors.getColor(binding.textinput, com.google.android.material.R.attr.colorOnTertiaryContainer)));
|
||||
binding.inputLayout.setBackgroundTintList(ColorStateList.valueOf(MaterialColors.getColor(binding.inputLayout, com.google.android.material.R.attr.colorTertiaryContainer)));
|
||||
//binding.inputLayout.setBackgroundTintList(ColorStateList.valueOf(MaterialColors.getColor(binding.inputLayout, com.google.android.material.R.attr.colorTertiaryContainer)));
|
||||
|
||||
binding.textinputSubject.setTextColor(MaterialColors.getColor(binding.textinputSubject, com.google.android.material.R.attr.colorOnTertiaryContainer));
|
||||
binding.textinput.setTextColor(MaterialColors.getColor(binding.textinput, com.google.android.material.R.attr.colorOnTertiaryContainer));
|
||||
|
|
|
@ -92,7 +92,12 @@
|
|||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@drawable/textsend"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:background="@drawable/background_message_bubble"
|
||||
android:alpha="0.88"
|
||||
android:orientation="vertical"
|
||||
android:animateLayoutChanges="true" >
|
||||
|
@ -248,8 +253,7 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@+id/textSendButton"
|
||||
android:layout_toEndOf="@+id/thread_identicon_layout"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="8dp"
|
||||
android:paddingVertical="6dp"
|
||||
android:animateLayoutChanges="true" >
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
|
|
Loading…
Reference in a new issue