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) { if (typingMessage == null) {
it.setTextColor(ThemeUtils.getColor(requireContext(), R.attr.vctr_toolbar_secondary_text_color)) it.setTextColor(ThemeUtils.getColor(requireContext(), R.attr.vctr_toolbar_secondary_text_color))
it.setTypeface(null, Typeface.NORMAL) it.setTypeface(null, Typeface.NORMAL)
} else {
if (ThemeUtils.isScTheme(context)) {
it.setTextColor(ContextCompat.getColor(requireContext(), R.color.accent_sc))
} else { } else {
it.setTextColor(ContextCompat.getColor(requireContext(), R.color.riotx_accent)) it.setTextColor(ContextCompat.getColor(requireContext(), R.color.riotx_accent))
}
it.setTypeface(null, Typeface.BOLD) it.setTypeface(null, Typeface.BOLD)
} }
} }

View File

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