Archived
1
0

Well, I'm depressing so no message. Just accept your faith

This commit is contained in:
Michael Gordeev
2019-03-26 12:16:56 +03:00
parent 34e33d3f0e
commit 854b0c88b1
81 changed files with 1212 additions and 178 deletions
+4 -4
View File
@@ -126,20 +126,20 @@ namespace FoxTube.Pages.SettingsPages
if (sender == light && SettingsStorage.Theme != 0)
{
SettingsStorage.Theme = 0;
Application.Current.RequestedTheme = ApplicationTheme.Light;
Methods.MainPage.RequestedTheme = ElementTheme.Light;
}
else if (sender == dark && SettingsStorage.Theme != 1)
{
SettingsStorage.Theme = 1;
Application.Current.RequestedTheme = ApplicationTheme.Dark;
Methods.MainPage.RequestedTheme = ElementTheme.Dark;
}
else if (sender == system && SettingsStorage.Theme != 2)
{
SettingsStorage.Theme = 2;
if (new Windows.UI.ViewManagement.UISettings().GetColorValue(Windows.UI.ViewManagement.UIColorType.Background) == Colors.Black)
Application.Current.RequestedTheme = ApplicationTheme.Dark;
Methods.MainPage.RequestedTheme = ElementTheme.Dark;
else
Application.Current.RequestedTheme = ApplicationTheme.Light;
Methods.MainPage.RequestedTheme = ElementTheme.Light;
}
Methods.MainPage.SetTitleBar();
}