Fix adjustable colors in default theme.

This commit is contained in:
John Preston 2020-06-26 14:37:07 +04:00
parent 31c745cb07
commit 793e8c102e

View File

@ -521,13 +521,6 @@ ChatBackground::ChatBackground() : _adjustableColors({
st::historyScrollBgOver,
st::historyScrollBarBg,
st::historyScrollBarBgOver }) {
saveAdjustableColors();
subscribe(this, [=](const BackgroundUpdate &update) {
if (update.paletteChanged()) {
style::NotifyPaletteChanged();
}
});
}
void ChatBackground::setThemeData(QImage &&themeImage, bool themeTile) {
@ -550,6 +543,14 @@ void ChatBackground::initialRead() {
}
void ChatBackground::start() {
saveAdjustableColors();
subscribe(this, [=](const BackgroundUpdate &update) {
if (update.paletteChanged()) {
style::NotifyPaletteChanged();
}
});
initialRead();
Core::App().domain().activeSessionValue(