2019-11-13 12:19:36 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Reflection;
|
2021-02-21 20:15:09 -05:00
|
|
|
|
using DiscordChatExporter.Gui.Utils;
|
2020-10-05 10:10:00 -04:00
|
|
|
|
using MaterialDesignThemes.Wpf;
|
2019-11-13 12:19:36 -05:00
|
|
|
|
|
|
|
|
|
namespace DiscordChatExporter.Gui
|
2017-09-27 18:24:45 -04:00
|
|
|
|
{
|
|
|
|
|
public partial class App
|
2019-04-12 06:48:13 -04:00
|
|
|
|
{
|
2020-10-24 14:15:58 -04:00
|
|
|
|
private static Assembly Assembly { get; } = typeof(App).Assembly;
|
2019-11-13 12:19:36 -05:00
|
|
|
|
|
2020-10-24 14:15:58 -04:00
|
|
|
|
public static string Name { get; } = Assembly.GetName().Name!;
|
2019-11-13 12:19:36 -05:00
|
|
|
|
|
2020-10-24 14:15:58 -04:00
|
|
|
|
public static Version Version { get; } = Assembly.GetName().Version!;
|
2019-11-13 12:19:36 -05:00
|
|
|
|
|
2020-10-24 14:15:58 -04:00
|
|
|
|
public static string VersionString { get; } = Version.ToString(3);
|
|
|
|
|
|
|
|
|
|
public static string GitHubProjectUrl { get; } = "https://github.com/Tyrrrz/DiscordChatExporter";
|
|
|
|
|
|
|
|
|
|
public static string GitHubProjectWikiUrl { get; } = GitHubProjectUrl + "/wiki";
|
2017-09-27 18:24:45 -04:00
|
|
|
|
}
|
2020-10-05 10:10:00 -04:00
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void SetDarkTheme()
|
|
|
|
|
{
|
|
|
|
|
var paletteHelper = new PaletteHelper();
|
|
|
|
|
paletteHelper.SetTheme(DarkTheme);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-27 18:24:45 -04:00
|
|
|
|
}
|