From 793e8c102e640c6bf300f531a943d735c3049d73 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 26 Jun 2020 14:37:07 +0400 Subject: [PATCH] Fix adjustable colors in default theme. --- .../SourceFiles/window/themes/window_theme.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Telegram/SourceFiles/window/themes/window_theme.cpp b/Telegram/SourceFiles/window/themes/window_theme.cpp index b3940bd82..77b9165a5 100644 --- a/Telegram/SourceFiles/window/themes/window_theme.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme.cpp @@ -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(