Skip to content

Commit a176b16

Browse files
committed
v1.1.1
1 parent 226c6a4 commit a176b16

5 files changed

Lines changed: 48 additions & 75 deletions

File tree

Compact RAM Cleaner/Controls/ColorDialogProvider.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,26 @@ public Color Color
2525

2626
public event EventHandler OnColorChanged;
2727

28-
public ColorDialogProvider()
28+
protected override void OnMouseEnter(EventArgs e)
2929
{
30-
MouseEnter += (s, e) =>
31-
{
32-
_drawOutline = true;
33-
Refresh();
34-
};
30+
base.OnMouseEnter(e);
31+
_drawOutline = true;
32+
Refresh();
33+
}
3534

36-
MouseLeave += (s, e) =>
37-
{
38-
_drawOutline = false;
39-
Refresh();
40-
};
35+
protected override void OnMouseLeave(EventArgs e)
36+
{
37+
base.OnMouseLeave(e);
38+
_drawOutline = false;
39+
Refresh();
40+
}
4141

42-
Click += (s, e) =>
43-
{
44-
var cd = new ColorDialog { Color = _color, FullOpen = true };
45-
if (cd.ShowDialog() == DialogResult.OK)
46-
Color = cd.Color;
47-
};
42+
protected override void OnClick(EventArgs e)
43+
{
44+
base.OnClick(e);
45+
var cd = new ColorDialog { Color = _color, FullOpen = true };
46+
if (cd.ShowDialog() == DialogResult.OK)
47+
Color = cd.Color;
4848
}
4949

5050
protected override void OnPaint(PaintEventArgs e)

Compact RAM Cleaner/Controls/GroupPanel.cs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,28 @@ public class GroupPanel : Panel
77
{
88
readonly int _indent = 10;
99
readonly int _cornerRadius = 6;
10+
readonly Label _label;
11+
12+
string _title = "";
13+
public string Title
14+
{
15+
get => _title;
16+
set
17+
{
18+
_title = value;
19+
_label.Text = _title;
20+
}
21+
}
22+
23+
public GroupPanel()
24+
{
25+
_label = new Label { AutoSize = true, Location = new Point(20, 3), Text = Title };
26+
Controls.Add(_label);
27+
}
1028

1129
protected override void OnPaint(PaintEventArgs e)
1230
{
1331
base.OnPaint(e);
14-
1532
using (var pen = new Pen(SystemColors.ControlDarkDark))
1633
e.Graphics.DrawRoundedRectangle(pen, new Rectangle(_indent, _indent, Width - (_indent * 2), Height - (_indent * 2)), _cornerRadius);
1734
}

Compact RAM Cleaner/Forms/Settings.Designer.cs

Lines changed: 7 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Compact RAM Cleaner/Forms/Settings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,15 +579,15 @@ public bool TryGetColor(string s, out Color color)
579579
void UpdateTranslation()
580580
{
581581
LabelResetSettings.Text = Translations.GetString("ResetSettings");
582-
LabelGroup1.Text = Translations.GetString("GeneralSettings");
582+
groupPanel1.Title = Translations.GetString("GeneralSettings");
583583
AutoUpdateCheck.Text = Translations.GetString("AutoUpdate");
584584
AutorunCheck.Text = Translations.GetString("Autorun");
585585
AutoClearCheck.Text = Translations.GetString("AutoClear");
586586
CleaningResultsCheck.Text = Translations.GetString("ShowCleaningResults");
587587
StartMinimizedCheck.Text = Translations.GetString("StartMinimized");
588-
LabelGroup2.Text = Translations.GetString("Language");
588+
groupPanel2.Title = Translations.GetString("Language");
589589

590-
LabelGroup3.Text = Translations.GetString("GeneralSettings");
590+
groupPanel3.Title = Translations.GetString("GeneralSettings");
591591
LabelTextColor.Text = Translations.GetString("TextColor");
592592
TrayTextColor.Location = new Point(LabelTextColor.Location.X + LabelTextColor.Width, TrayTextColor.Location.Y);
593593
CheckBoxTextShadow.Text = Translations.GetString("TextShadow");
@@ -597,7 +597,7 @@ void UpdateTranslation()
597597
radioButton1.Text = Translations.GetString("ClearRAM");
598598
radioButton2.Text = Translations.GetString("OpenTaskManager");
599599

600-
LabelGroup4.Text = Translations.GetString("Style");
600+
groupPanel4.Title = Translations.GetString("Style");
601601
LabelCustomStyle.Text = Translations.GetString("Custom");
602602

603603
AboutLabel1.Text = Translations.GetString("AboutString1");

Compact RAM Cleaner/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.1.0.0")]
36-
[assembly: AssemblyFileVersion("1.1.0.0")]
35+
[assembly: AssemblyVersion("1.1.1.0")]
36+
[assembly: AssemblyFileVersion("1.1.1.0")]

0 commit comments

Comments
 (0)