Skip to content

Commit

Permalink
Fix GalleryApp Runtime Theme Change
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Dec 22, 2024
1 parent 0a467ce commit 033ff0e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dev/DevWinUI.Gallery/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public static T GetService<T>() where T : class
public App()
{
Services = ConfigureServices();
Application.Current.RequestedTheme = GetThemeService.GetApplicationTheme();
this.InitializeComponent();
}

Expand Down Expand Up @@ -51,7 +50,6 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
if (GetThemeService != null)
{
GetThemeService.AutoInitialize(MainWindow)
.EnableRequestedTheme()
.ConfigureTintColor();
}

Expand Down

0 comments on commit 033ff0e

Please sign in to comment.