Skip to content

Commit

Permalink
Add missing summary blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
XanatosX committed Feb 16, 2023
1 parent 6188714 commit 1f7fda3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ModularToolManager/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public MainWindowViewModel(
});
}

/// <summary>
/// Switch the theme for the window
/// </summary>
/// <param name="themeId">The theme id to switch to</param>
private void SwitchTheme(int themeId)
{
var theme = themeService.GetStyleById(themeId);
Expand All @@ -163,6 +167,9 @@ private void SwitchTheme(int themeId)
themeService.ChangeApplicationTheme(theme);
}

/// <summary>
/// Switch the theme for the window based on the settings
/// </summary>
private void SwitchTheme()
{
int themeId = settingsService.GetApplicationSettings().SelectedThemeId;
Expand Down

0 comments on commit 1f7fda3

Please sign in to comment.