forked from upstream-mirrors/quik
Fixed icon and letter color for avatar in conversation
This commit is contained in:
@@ -73,9 +73,13 @@ class AvatarView @JvmOverloads constructor(context: Context, attrs: AttributeSet
|
||||
.autoDisposable(scope())
|
||||
.subscribe { color -> background.setTint(color) }
|
||||
|
||||
colors.textPrimaryOnTheme
|
||||
.autoDisposable(scope())
|
||||
.subscribe { color -> icon.setTint(color) }
|
||||
colors.textPrimaryOnThemeForConversation(threadId).let { observable ->
|
||||
initial.textColorObservable = observable
|
||||
|
||||
observable
|
||||
.autoDisposable(scope())
|
||||
.subscribe { color -> icon.setTint(color) }
|
||||
}
|
||||
|
||||
clicks()
|
||||
.autoDisposable(scope())
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
android:gravity="center"
|
||||
android:textAllCaps="true"
|
||||
android:textSize="20sp"
|
||||
app:textColor="primaryOnTheme"
|
||||
tools:text="M" />
|
||||
|
||||
<ImageView
|
||||
|
||||
Reference in New Issue
Block a user