mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Fix multi-pin bar render after theme switch.
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user