mirror of
https://github.com/FroggMaster/CreamInstaller.git
synced 2026-06-12 19:11:25 -07:00
Enable Dark Mode by Default
- Enabled dark mode by default (Looks decent enough)
This commit is contained in:
@@ -43,8 +43,8 @@ internal static class Program
|
|||||||
internal static readonly string[] ProtectedGameDirectories = [@"\EasyAntiCheat", @"\BattlEye"];
|
internal static readonly string[] ProtectedGameDirectories = [@"\EasyAntiCheat", @"\BattlEye"];
|
||||||
internal static readonly string[] ProtectedGameDirectoryExceptions = [];
|
internal static readonly string[] ProtectedGameDirectoryExceptions = [];
|
||||||
|
|
||||||
// Dark mode toggle (default false). Can be toggled via UI button.
|
// Dark mode enabled by default
|
||||||
internal static bool DarkModeEnabled;
|
internal static bool DarkModeEnabled = true;
|
||||||
|
|
||||||
internal static bool IsGameBlocked(string name, string directory = null)
|
internal static bool IsGameBlocked(string name, string directory = null)
|
||||||
=> BlockProtectedGames && (ProtectedGames.Contains(name) || directory is not null &&
|
=> BlockProtectedGames && (ProtectedGames.Contains(name) || directory is not null &&
|
||||||
@@ -73,7 +73,7 @@ internal static class Program
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
DebugForm.Current.Attach(form);
|
DebugForm.Current.Attach(form);
|
||||||
#endif
|
#endif
|
||||||
// Apply initial theme
|
// Apply initial theme (dark by default)
|
||||||
Utility.ThemeManager.Apply(form);
|
Utility.ThemeManager.Apply(form);
|
||||||
Application.Run(form);
|
Application.Run(form);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user