[GUI] Clean up theme management

This commit is contained in:
Alexey Golub
2020-10-05 17:10:00 +03:00
parent 19f678ca01
commit 239c47c06e
7 changed files with 62 additions and 56 deletions

View File

@@ -107,8 +107,15 @@ namespace DiscordChatExporter.Gui.ViewModels
IsBotToken = _settingsService.LastToken.Type == AuthTokenType.Bot;
TokenValue = _settingsService.LastToken.Value;
}
Theme.SetCurrent(_settingsService.IsDarkThemeEnabled ? Theme.Dark : Theme.Light);
if (_settingsService.IsDarkThemeEnabled)
{
App.SetDarkTheme();
}
else
{
App.SetLightTheme();
}
await HandleAutoUpdateAsync();
}