Skip to content

Commit

Permalink
upstream for new config templating engine
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed May 17, 2023
1 parent 2b2785c commit 1fd9bdc
Show file tree
Hide file tree
Showing 19 changed files with 1,608 additions and 1,566 deletions.
4 changes: 2 additions & 2 deletions Optimizer/Controls/ColorPicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ protected virtual Brush CreateGradientBrush()

return result;
}

protected virtual Color GetContrastColor(Color c)
{
double brightness = c.R * 0.299 + c.G * 0.587 + c.B * 0.114;
Expand Down Expand Up @@ -526,7 +526,7 @@ protected virtual void OnColorChanged(EventArgs e)
{
this.HslColor = new HslColor(this.Color);
}

this.SelectionGlyph = this.CreateSelectionGlyph();
this.Refresh();

Expand Down
2 changes: 1 addition & 1 deletion Optimizer/Controls/MoonTabs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public MoonTabs()

Margin = new Padding(0);
Padding = new Point(0, 0);

this.SizeMode = TabSizeMode.Fixed;
}

Expand Down
2 changes: 1 addition & 1 deletion Optimizer/Required.cs → Optimizer/CoreHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Optimizer
{
internal static class Required
internal static class CoreHelper
{
internal readonly static string CoreFolder = CleanHelper.ProgramData + "\\Optimizer\\";
internal readonly static string ReadyMadeMenusFolder = CleanHelper.ProgramData + "\\Optimizer\\ReadyMadeMenus\\";
Expand Down
18 changes: 13 additions & 5 deletions Optimizer/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ internal enum LogType

internal enum WindowsVersion
{
Unsupported,
Windows7,
Windows8,
Windows10,
Windows11
Unsupported = 0,
Windows7 = 7,
Windows8 = 8,
Windows10 = 10,
Windows11 = 11
}

public enum StartupItemLocation
Expand Down Expand Up @@ -76,6 +76,14 @@ public enum ToggleSwitchButtonAlignment
Right
}

public enum RestartType
{
Normal,
SafeMode,
DisableDefender,
EnableDefender
}

public enum LanguageCode
{
EN, // english
Expand Down
2 changes: 1 addition & 1 deletion Optimizer/ErrorLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Optimizer
{
internal static class ErrorLogger
{
internal static string ErrorLogFile = Path.Combine(Required.CoreFolder, "Optimizer.log");
internal static string ErrorLogFile = Path.Combine(CoreHelper.CoreFolder, "Optimizer.log");

internal static void LogError(string functionName, string errorMessage, string errorStackTrace)
{
Expand Down
1,850 changes: 832 additions & 1,018 deletions Optimizer/Forms/MainForm.Designer.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 1fd9bdc

Please sign in to comment.