mirror of
https://github.com/kwsch/NHSE.git
synced 2026-03-22 01:34:51 -05:00
Add theme menu to Editor and accompanying logic + strings. Updated Misc fruit/flower and CampsiteEditor to use translatable strings. Add strings to lang files.
31 lines
739 B
C#
31 lines
739 B
C#
using NHSE.WinForms.Properties;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace NHSE.WinForms;
|
|
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
private static void Main()
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
var args = Environment.GetCommandLineArgs();
|
|
if (args.Length > 1)
|
|
{
|
|
if (args.Contains("-dark"))
|
|
{
|
|
WinFormsUtil.SetApplicationTheme(2);
|
|
Settings.Default.DarkMode = "2";
|
|
Settings.Default.Save();
|
|
}
|
|
}
|
|
|
|
Application.Run(new Main());
|
|
}
|
|
} |