private void SetColorSchema(ColorSchema schema) { Current.Resources.MergedDictionaries[0].Source = new Uri($@"pack://application:,,,/Planetarium.Types;component/Themes/Colors{(schema == ColorSchema.Red ? "Red" : "Default")}.xaml"); if (schema == ColorSchema.Red) { CursorsHelper.SetCustomCursors(); } else { CursorsHelper.SetSystemCursors(); } }
protected override void OnExit(ExitEventArgs e) { CursorsHelper.SetSystemCursors(); base.OnExit(e); }