2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix data export window theme changing.

Fixes #4902.
This commit is contained in:
John Preston
2018-06-26 22:33:30 +01:00
parent 1ee71bbd5c
commit 3b956c598b
6 changed files with 20 additions and 8 deletions

View File

@@ -60,9 +60,6 @@ MainWindow::MainWindow()
, _titleText(qsl("Telegram")) {
subscribe(Theme::Background(), [this](const Theme::BackgroundUpdate &data) {
if (data.paletteChanged()) {
if (_title) {
_title->update();
}
updatePalette();
}
});
@@ -242,6 +239,8 @@ void MainWindow::handleActiveChanged() {
}
void MainWindow::updatePalette() {
Ui::ForceFullRepaint(this);
auto p = palette();
p.setColor(QPalette::Window, st::windowBg->c);
setPalette(p);