We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18b5fbf commit a4758ebCopy full SHA for a4758eb
Fluent.Ribbon.Showcase/ViewModels/IssueRepros/ThemeManagerFromThread.cs
@@ -85,17 +85,9 @@ private void ChangeTheme(ThemeColors themeColor)
85
}
86
else
87
{
88
- var newTheme = ThemeManager.Current.GetTheme("Light." + themeColor.ToString());
89
- if (newTheme is not null)
90
- {
91
- ThemeManager.Current.ChangeTheme(Application.Current, newTheme);
+ var newTheme = ThemeManager.Current.ChangeThemeColorScheme(Application.Current, themeColor.ToString());
92
93
- this.Info($"Change theme: NewTheme: {newTheme.Name} Theme changed.");
94
- }
95
- else
96
97
- this.Info($"Change theme: Theme not found: {themeColor}.");
98
+ this.Info($"Change theme: NewTheme: {newTheme?.Name} Theme changed.");
99
100
101
0 commit comments