mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-26 10:31:18 +00:00
Fix adjustable colors in default theme.
This commit is contained in:
parent
31c745cb07
commit
793e8c102e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user