From cdde72cbe06e09fe55ff562a4af63190396434cc Mon Sep 17 00:00:00 2001 From: sirhamsteralot Date: Mon, 26 Mar 2018 11:34:53 +0200 Subject: [PATCH] Comments --- Torch.Server/Views/ThemeControl.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Torch.Server/Views/ThemeControl.xaml.cs b/Torch.Server/Views/ThemeControl.xaml.cs index 36ecc5b..2033c7b 100644 --- a/Torch.Server/Views/ThemeControl.xaml.cs +++ b/Torch.Server/Views/ThemeControl.xaml.cs @@ -22,9 +22,12 @@ namespace Torch.Server.Views /// public partial class ThemeControl : UserControl, INotifyPropertyChanged { + // Action other views can subscribe to to update their views if they dont inherit the style from the window for some reason. public static Action UpdateWeirdViews; - public static ResourceDictionary currentTheme; + // Current theme other views can set their theme to when they first spawn + public static ResourceDictionary currentTheme = new ResourceDictionary() { Source = new Uri(@"/Views/Resources.xaml", UriKind.Relative) }; + // The current torch window and config. public TorchUI uiSource; private TorchConfig _torchConfig;