mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 10:31:26 -07:00
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.
34 lines
805 B
C#
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();
|
|
}
|
|
}
|
|
}
|