SC theme: fix typing text

This commit is contained in:
SpiritCroc 2020-05-14 11:31:52 +02:00
parent c843d91689
commit be8b310d09
2 changed files with 6 additions and 2 deletions

View File

@ -742,8 +742,12 @@ class RoomDetailFragment @Inject constructor(
if (typingMessage == null) {
it.setTextColor(ThemeUtils.getColor(requireContext(), R.attr.vctr_toolbar_secondary_text_color))
it.setTypeface(null, Typeface.NORMAL)
} else {
if (ThemeUtils.isScTheme(context)) {
it.setTextColor(ContextCompat.getColor(requireContext(), R.color.accent_sc))
} else {
it.setTextColor(ContextCompat.getColor(requireContext(), R.color.riotx_accent))
}
it.setTypeface(null, Typeface.BOLD)
}
}

View File

@ -163,7 +163,7 @@
android:layout_marginRight="8dp"
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/riotx_accent"
android:textColor="?colorAccent"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"