This commit is contained in:
sirhamsteralot
2018-03-26 11:34:53 +02:00
committed by John Gross
parent b18420ad55
commit cdde72cbe0

View File

@@ -22,9 +22,12 @@ namespace Torch.Server.Views
/// </summary> /// </summary>
public partial class ThemeControl : UserControl, INotifyPropertyChanged 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<ResourceDictionary> UpdateWeirdViews; public static Action<ResourceDictionary> 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; public TorchUI uiSource;
private TorchConfig _torchConfig; private TorchConfig _torchConfig;