mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Fix overscroll background on theme change.
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user