Themes apply everywhere now
This commit is contained in:

committed by
John Gross

parent
d92daccdbf
commit
b18420ad55
@@ -28,6 +28,15 @@ namespace Torch.Server.Views.Blocks
|
||||
public BlockView()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ThemeControl.UpdateWeirdViews += UpdateResourceDict;
|
||||
UpdateResourceDict(ThemeControl.currentTheme);
|
||||
}
|
||||
|
||||
public void UpdateResourceDict(ResourceDictionary dictionary)
|
||||
{
|
||||
this.Resources.MergedDictionaries.Clear();
|
||||
this.Resources.MergedDictionaries.Add(dictionary);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user