mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 02:21:27 -07:00
35 lines
803 B
C#
35 lines
803 B
C#
using System.Windows;
|
|
|
|
using Bloxstrap.Enums;
|
|
using System;
|
|
|
|
namespace Bloxstrap.Dialogs.Menu
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ModHelp.xaml
|
|
/// </summary>
|
|
public partial class ModHelp : Window
|
|
{
|
|
public ModHelp()
|
|
{
|
|
InitializeComponent();
|
|
SetTheme();
|
|
}
|
|
|
|
public void SetTheme()
|
|
{
|
|
string theme = "Light";
|
|
|
|
if (App.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();
|
|
}
|
|
}
|
|
}
|