From cf5cc3646a9b1d958e7d389a45f8c97c96b0f6c6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 24 Dec 2020 07:59:29 +0400 Subject: [PATCH] Fix multi-pin bar render after theme switch. --- Telegram/SourceFiles/ui/chat/message_bar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/ui/chat/message_bar.cpp b/Telegram/SourceFiles/ui/chat/message_bar.cpp index 332d46c25..8cb09a692 100644 --- a/Telegram/SourceFiles/ui/chat/message_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/message_bar.cpp @@ -45,6 +45,11 @@ MessageBar::MessageBar(not_null parent, const style::MessageBar &st) : _st(st) , _widget(parent) { setup(); + + style::PaletteChanged( + ) | rpl::start_with_next([=] { + _topBarGradient = _bottomBarGradient = QPixmap(); + }, _widget.lifetime()); } void MessageBar::setup() {