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