bloxstrap/Bloxstrap/Dialogs/Menu/ReShadeHelp.xaml.cs
pizzaboxer 83f37ee6c3 Rework Preferences menu and file modding
Adds help windows to the Preferences menu, reworked directory structure and allowed files in the root mod directory to be applied to the version folder.
2023-01-17 22:13:51 +00:00

34 lines
805 B
C#

using System.Windows;
using Bloxstrap.Enums;
namespace Bloxstrap.Dialogs.Menu
{
/// <summary>
/// Interaction logic for ReShadeHelp.xaml
/// </summary>
public partial class ReShadeHelp : Window
{
public ReShadeHelp()
{
InitializeComponent();
SetTheme();
}
public void SetTheme()
{
string theme = "Light";
if (Program.Settings.Theme.GetFinal() == Theme.Dark)
theme = "ColourfulDark";
this.Resources.MergedDictionaries[0] = new ResourceDictionary() { Source = new Uri($"Dialogs/Menu/Themes/{theme}Theme.xaml", UriKind.Relative) };
}
private void ButtonClose_Click(object sender, EventArgs e)
{
this.Close();
}
}
}