From 4a86c81edfb638d3b78bb1e8abc9b0a0ed39ce90 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 25 Sep 2020 14:29:32 +1000 Subject: [PATCH] themify the typing bubble --- js/views/conversation_view.js | 4 ++++ ts/components/conversation/TypingBubble.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index c2752c2bf..b89a90bf2 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -701,9 +701,13 @@ const { sender } = mostRecent; const contact = ConversationController.getOrCreate(sender, 'private'); + // we need the opposite theme + const color = + window.Events.getThemeSetting() === 'light' ? 'dark' : 'light'; const props = { ...contact.format(), conversationType: this.model.isPrivate() ? 'direct' : 'group', + color, }; if (this.typingBubbleView) { diff --git a/ts/components/conversation/TypingBubble.tsx b/ts/components/conversation/TypingBubble.tsx index 5a683ca2f..7b4756de3 100644 --- a/ts/components/conversation/TypingBubble.tsx +++ b/ts/components/conversation/TypingBubble.tsx @@ -58,7 +58,7 @@ export class TypingBubble extends React.Component { )} >
- +
{this.renderAvatar()}