NHSE/NHSE.WinForms/Program.cs
Josh (vector_cmdr) c412da8217
Add theme menu + new strings (#710)
Add theme menu to Editor and accompanying logic + strings.

Updated Misc fruit/flower and CampsiteEditor to use translatable strings.
Added new strings to lang and msg files.
2026-01-23 13:33:00 +11:00

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());
}
}