Skip to content

Commit 3131d1a

Browse files
committed
Major update to v15.9
1 parent 71355b5 commit 3131d1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2075
-1618
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [15.9] - 2023-10-14
2+
- New: Disable CoPilot AI (in Windows 11)
3+
- New: Fully translated into Bulgarian
4+
- New: 'Reinforce policies' in Options re-applies your current enabled tweaks (#389)
5+
- Hotfix: Crash on localized versions of Windows (#383)
6+
- Hotfix: Various UI bugs
7+
- Improved: Optimized images and assets
8+
- Improved: Startup items detection
9+
110
## [15.8] - 2023-08-26
211
- New: Fully translated into Nepali (thanks to chapagetti)
312
- New: You can now set custom DNS in Pinger, as well as from template

Optimizer/Constants.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
internal static class Constants
44
{
55
internal static string DOWNLOADS_FOLDER = "OptimizerDownloads";
6-
internal static string InternalDNS = "1.1.1.1";
6+
internal static string INTERNAL_DNS = "1.1.1.1";
7+
internal static string THEME_FLAG = "themeable";
8+
internal static int CONTRAST_THRESHOLD = 149;
79

810
internal static string INDICIUM_TOOL = "indicium";
911
internal static string UWP_TOOL = "uwp";
@@ -37,6 +39,7 @@ internal static class Constants
3739
internal static string JAPANESE = "日本語";
3840
internal static string PERSIAN = "فارسی";
3941
internal static string NEPALI = "नेपाली";
42+
internal static string BULGARIAN = "български";
4043

4144
internal static string CloudflareDNS = "Cloudflare";
4245
internal static string OpenDNS = "OpenDNS";

Optimizer/Controls/MoonCheck.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override void OnCheckedChanged(EventArgs e)
2121
this.Tag = "themeable";
2222
this.Font = new Font(this.Font, FontStyle.Underline);
2323

24-
this.ForeColor = Options.ForegroundColor;
24+
this.ForeColor = OptionsHelper.ForegroundColor;
2525
}
2626
else
2727
{

Optimizer/Controls/MoonCheckList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public MoonCheckList()
1313
protected override void OnDrawItem(DrawItemEventArgs e)
1414
{
1515
Color foreColor = Color.White;
16-
Color accentColor = Options.ForegroundColor;
16+
Color accentColor = OptionsHelper.ForegroundColor;
1717

1818
if (this.Items.Count > 0)
1919
{

Optimizer/Controls/MoonMenuRenderer.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,77 +51,77 @@ public override Color ToolStripDropDownBackground
5151
{
5252
get
5353
{
54-
return Options.BackgroundColor;
54+
return OptionsHelper.BackgroundColor;
5555
}
5656
}
5757

5858
public override Color ImageMarginGradientBegin
5959
{
6060
get
6161
{
62-
return Options.BackgroundColor;
62+
return OptionsHelper.BackgroundColor;
6363
}
6464
}
6565
public override Color ImageMarginGradientMiddle
6666
{
6767
get
6868
{
69-
return Options.BackgroundColor;
69+
return OptionsHelper.BackgroundColor;
7070
}
7171
}
7272
public override Color ImageMarginGradientEnd
7373
{
7474
get
7575
{
76-
return Options.BackgroundColor;
76+
return OptionsHelper.BackgroundColor;
7777
}
7878
}
7979

8080
public override Color ToolStripBorder
8181
{
8282
get
8383
{
84-
return Options.BackgroundColor;
84+
return OptionsHelper.BackgroundColor;
8585
}
8686
}
8787

8888
public override Color MenuBorder
8989
{
9090
get
9191
{
92-
return Options.BackAccentColor;
92+
return OptionsHelper.BackAccentColor;
9393
}
9494
}
9595

9696
public override Color MenuItemSelected
9797
{
9898
get
9999
{
100-
return Options.BackAccentColor;
100+
return OptionsHelper.BackAccentColor;
101101
}
102102
}
103103

104104
public override Color MenuItemSelectedGradientBegin
105105
{
106106
get
107107
{
108-
return Options.BackAccentColor;
108+
return OptionsHelper.BackAccentColor;
109109
}
110110
}
111111

112112
public override Color MenuItemSelectedGradientEnd
113113
{
114114
get
115115
{
116-
return Options.BackAccentColor;
116+
return OptionsHelper.BackAccentColor;
117117
}
118118
}
119119

120120
public override Color MenuItemBorder
121121
{
122122
get
123123
{
124-
return Options.BackAccentColor;
124+
return OptionsHelper.BackAccentColor;
125125
}
126126
}
127127
}

Optimizer/Controls/MoonProgress.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected override void OnPaint(PaintEventArgs e)
2222

2323
rec.Width = (int)(rec.Width * ((double)base.Value / Maximum)) - 4;
2424
rec.Height -= 4;
25-
brush = new LinearGradientBrush(rec, Options.ForegroundAccentColor, Options.ForegroundColor, LinearGradientMode.Vertical);
25+
brush = new LinearGradientBrush(rec, OptionsHelper.ForegroundAccentColor, OptionsHelper.ForegroundColor, LinearGradientMode.Vertical);
2626
e.Graphics.FillRectangle(brush, 2, 2, rec.Width, rec.Height);
2727
}
2828
}

Optimizer/Controls/MoonRadio.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override void OnCheckedChanged(EventArgs e)
2121
this.Tag = "themeable";
2222
this.Font = new Font(this.Font, FontStyle.Underline);
2323

24-
this.ForeColor = Options.ForegroundColor;
24+
this.ForeColor = OptionsHelper.ForegroundColor;
2525
}
2626
else
2727
{

Optimizer/Controls/MoonTabs.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected override void OnPaint(PaintEventArgs e)
172172
if (TabCount > 0)
173173
{
174174
using (SolidBrush brushBackgroundTab = new SolidBrush(Color.FromArgb(40, 40, 40)))
175-
using (SolidBrush brushDivider = new SolidBrush(Options.ForegroundColor))
175+
using (SolidBrush brushDivider = new SolidBrush(OptionsHelper.ForegroundColor))
176176
{
177177
{
178178
e.Graphics.FillRectangle(brushBackgroundTab, DisplayRectangle);
@@ -206,16 +206,16 @@ protected override void OnPaint(PaintEventArgs e)
206206

207207
SolidBrush brushActiveText;
208208

209-
using (Pen penActive = new Pen(Options.ForegroundColor))
209+
using (Pen penActive = new Pen(OptionsHelper.ForegroundColor))
210210
using (Pen penBorder = new Pen(Color.FromArgb(40, 40, 40), 0))
211-
using (SolidBrush brushActive = new SolidBrush(Options.ForegroundColor))
211+
using (SolidBrush brushActive = new SolidBrush(OptionsHelper.ForegroundColor))
212212
using (SolidBrush brushInActive = new SolidBrush(Color.FromArgb(40, 40, 40)))
213-
using (SolidBrush brushAlternative = new SolidBrush(Options.ForegroundColor))
214-
using (SolidBrush brushActiveIndicator = new SolidBrush(ControlPaint.Light(Options.ForegroundColor)))
215-
using (SolidBrush brushInActiveIndicator = new SolidBrush(Options.ForegroundColor))
216-
using (brushActiveText = new SolidBrush(Options.TextColor))
213+
using (SolidBrush brushAlternative = new SolidBrush(OptionsHelper.ForegroundColor))
214+
using (SolidBrush brushActiveIndicator = new SolidBrush(ControlPaint.Light(OptionsHelper.ForegroundColor)))
215+
using (SolidBrush brushInActiveIndicator = new SolidBrush(OptionsHelper.ForegroundColor))
216+
using (brushActiveText = new SolidBrush(OptionsHelper.TextColor))
217217
using (SolidBrush brushInActiveText = new SolidBrush(Color.White))
218-
using (SolidBrush brushDrag = new SolidBrush(ControlPaint.Dark(Options.ForegroundColor)))
218+
using (SolidBrush brushDrag = new SolidBrush(ControlPaint.Dark(OptionsHelper.ForegroundColor)))
219219
{
220220
//if (MoonManager.THEME_PREFERENCE == THEME.LIGHT) brushActiveText = new SolidBrush(Color.White);
221221

Optimizer/Controls/MoonToggle.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ protected override void OnPaint(PaintEventArgs pevent)
5858
if (this.Checked) //ON
5959
{
6060
if (solidStyle)
61-
pevent.Graphics.FillPath(new SolidBrush(Options.ForegroundColor), GetFigurePath());
62-
else pevent.Graphics.DrawPath(new Pen(Options.ForegroundColor, 2), GetFigurePath());
61+
pevent.Graphics.FillPath(new SolidBrush(OptionsHelper.ForegroundColor), GetFigurePath());
62+
else pevent.Graphics.DrawPath(new Pen(OptionsHelper.ForegroundColor, 2), GetFigurePath());
6363
//Draw the toggle
64-
pevent.Graphics.FillEllipse(new SolidBrush(Options.TextColor),
64+
pevent.Graphics.FillEllipse(new SolidBrush(OptionsHelper.TextColor),
6565
new Rectangle(this.Width - this.Height + 1, 2, toggleSize, toggleSize));
6666
}
6767
else //OFF
6868
{
6969
if (solidStyle)
70-
pevent.Graphics.FillPath(new SolidBrush(Options.BackAccentColor), GetFigurePath());
71-
else pevent.Graphics.DrawPath(new Pen(Options.BackAccentColor, 2), GetFigurePath());
70+
pevent.Graphics.FillPath(new SolidBrush(OptionsHelper.BackAccentColor), GetFigurePath());
71+
else pevent.Graphics.DrawPath(new Pen(OptionsHelper.BackAccentColor, 2), GetFigurePath());
7272
//Draw the toggle
7373
pevent.Graphics.FillEllipse(new SolidBrush(Color.White),
7474
new Rectangle(2, 2, toggleSize, toggleSize));

Optimizer/Controls/MoonTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected override void OnDrawNode(DrawTreeNodeEventArgs e)
4949
}
5050

5151
if (FindName(e.Node.Name)) TextRenderer.DrawText(e.Graphics, e.Node.Text, this.Font, e.Node.Bounds, Color.Silver);
52-
else if (e.Node.Tag != null && e.Node.Tag.ToString() == _primaryItemTag) TextRenderer.DrawText(e.Graphics, e.Node.Text, this.Font, e.Node.Bounds, Options.ForegroundColor);
52+
else if (e.Node.Tag != null && e.Node.Tag.ToString() == _primaryItemTag) TextRenderer.DrawText(e.Graphics, e.Node.Text, this.Font, e.Node.Bounds, OptionsHelper.ForegroundColor);
5353
else TextRenderer.DrawText(e.Graphics, e.Node.Text, this.Font, e.Node.Bounds, Color.White);
5454

5555
if (this.ImageList != null && this.ImageList.Images.Count > 0 && e.Node.SelectedImageIndex > -1)

0 commit comments

Comments
 (0)