Fix overscroll background on theme change.
This commit is contained in:
parent
b46799f2c3
commit
3b59f52028
|
@ -434,7 +434,18 @@ Widget::Widget(
|
||||||
setupSupportMode();
|
setupSupportMode();
|
||||||
setupScrollUpButton();
|
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) {
|
if (_layout != Layout::Child) {
|
||||||
setupConnectingWidget();
|
setupConnectingWidget();
|
||||||
|
|
||||||
|
@ -457,11 +468,8 @@ Widget::Widget(
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_childListShown.changes(
|
_childListShown.changes(
|
||||||
) | rpl::start_with_next([=](float64 value) {
|
) | rpl::start_with_next([=] {
|
||||||
_scroll->setOverscrollBg(anim::color(
|
_scroll->setOverscrollBg(overscrollBg());
|
||||||
st::dialogsBg,
|
|
||||||
st::dialogsBgOver,
|
|
||||||
value));
|
|
||||||
updateControlsGeometry();
|
updateControlsGeometry();
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user