mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix overscroll background on theme change.
This commit is contained in:
parent
b46799f2c3
commit
3b59f52028
1 changed files with 14 additions and 6 deletions
|
@ -434,7 +434,18 @@ Widget::Widget(
|
|||
setupSupportMode();
|
||||
setupScrollUpButton();
|
||||
|
||||
_scroll->setOverscrollBg(st::dialogsBg->c);
|
||||
const auto overscrollBg = [=] {
|
||||
return anim::color(
|
||||
st::dialogsBg,
|
||||
st::dialogsBgOver,
|
||||
_childListShown.current());
|
||||
};
|
||||
_scroll->setOverscrollBg(overscrollBg());
|
||||
style::PaletteChanged(
|
||||
) | rpl::start_with_next([=] {
|
||||
_scroll->setOverscrollBg(overscrollBg());
|
||||
}, lifetime());
|
||||
|
||||
if (_layout != Layout::Child) {
|
||||
setupConnectingWidget();
|
||||
|
||||
|
@ -457,11 +468,8 @@ Widget::Widget(
|
|||
}, lifetime());
|
||||
|
||||
_childListShown.changes(
|
||||
) | rpl::start_with_next([=](float64 value) {
|
||||
_scroll->setOverscrollBg(anim::color(
|
||||
st::dialogsBg,
|
||||
st::dialogsBgOver,
|
||||
value));
|
||||
) | rpl::start_with_next([=] {
|
||||
_scroll->setOverscrollBg(overscrollBg());
|
||||
updateControlsGeometry();
|
||||
}, lifetime());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue