mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix multi-pin bar render after theme switch.
This commit is contained in:
parent
375820d5cf
commit
cf5cc3646a
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ MessageBar::MessageBar(not_null<QWidget*> parent, const style::MessageBar &st)
|
||||||
: _st(st)
|
: _st(st)
|
||||||
, _widget(parent) {
|
, _widget(parent) {
|
||||||
setup();
|
setup();
|
||||||
|
|
||||||
|
style::PaletteChanged(
|
||||||
|
) | rpl::start_with_next([=] {
|
||||||
|
_topBarGradient = _bottomBarGradient = QPixmap();
|
||||||
|
}, _widget.lifetime());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessageBar::setup() {
|
void MessageBar::setup() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue