You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DiscordChatExporter/DiscordChatExporter.Gui/App.xaml.cs

50 lines
1.4 KiB

5 years ago
using System;
using System.Reflection;
4 years ago
using DiscordChatExporter.Gui.Utils;
using MaterialDesignThemes.Wpf;
5 years ago
3 years ago
namespace DiscordChatExporter.Gui;
public partial class App
{
3 years ago
private static Assembly Assembly { get; } = typeof(App).Assembly;
public static string Name { get; } = Assembly.GetName().Name!;
5 years ago
3 years ago
public static Version Version { get; } = Assembly.GetName().Version!;
5 years ago
3 years ago
public static string VersionString { get; } = Version.ToString(3);
5 years ago
public static string ProjectUrl { get; } = "https://github.com/Tyrrrz/DiscordChatExporter";
4 years ago
public static string ChangelogUrl { get; } = ProjectUrl + "/blob/master/Changelog.md";
public static string DocumentationUrl { get; } = ProjectUrl + "/blob/master/.docs";
3 years ago
}
4 years ago
3 years ago
public partial class App
{
private static Theme LightTheme { get; } = Theme.Create(
new MaterialDesignLightTheme(),
MediaColor.FromHex("#343838"),
MediaColor.FromHex("#F9A825")
);
private static Theme DarkTheme { get; } = Theme.Create(
new MaterialDesignDarkTheme(),
MediaColor.FromHex("#E8E8E8"),
MediaColor.FromHex("#F9A825")
);
public static void SetLightTheme()
{
var paletteHelper = new PaletteHelper();
paletteHelper.SetTheme(LightTheme);
}
3 years ago
public static void SetDarkTheme()
{
3 years ago
var paletteHelper = new PaletteHelper();
paletteHelper.SetTheme(DarkTheme);
}
}