MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / ThemeButtonClick

Method ThemeButtonClick

loader/MainWindow.xaml.cs:36–46  ·  view source on GitHub ↗
(object sender, RoutedEventArgs e)

Source from the content-addressed store, hash-verified

34 }
35
36 private void ThemeButtonClick(object sender, RoutedEventArgs e)
37 {
38 var tm = ThemeManager.Current;
39 var isLight = tm.ApplicationTheme == null
40 ? tm.ActualApplicationTheme == ApplicationTheme.Light
41 : tm.ApplicationTheme == ApplicationTheme.Light;
42
43 tm.ApplicationTheme = isLight
44 ? ApplicationTheme.Dark
45 : ApplicationTheme.Light;
46 }
47
48 protected override void OnSourceInitialized(EventArgs e)
49 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected