mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix adjustable colors in default theme.
This commit is contained in:
parent
31c745cb07
commit
793e8c102e
1 changed files with 8 additions and 7 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue