mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Closed beta 10020002: Use default color theme link in Settings.
This commit is contained in:
@@ -32,9 +32,10 @@ MainWindow::MainWindow() : QWidget()
|
||||
, _positionUpdatedTimer(this)
|
||||
, _body(this)
|
||||
, _titleText(qsl("Telegram")) {
|
||||
subscribe(Theme::Background(), [this](const Theme::BackgroundUpdate &data) {
|
||||
using Type = Theme::BackgroundUpdate::Type;
|
||||
if (data.type == Type::TestingTheme || data.type == Type::RevertingTheme || data.type == Type::ApplyingTheme) {
|
||||
using Update = Theme::BackgroundUpdate;
|
||||
subscribe(Theme::Background(), [this](const Update &data) {
|
||||
if (data.type == Update::Type::TestingTheme
|
||||
|| data.type == Update::Type::RevertingTheme) {
|
||||
if (_title) {
|
||||
_title->update();
|
||||
}
|
||||
|
Reference in New Issue
Block a user