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() {