Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qualcosa committed Jul 3, 2023
1 parent 226c6a4 commit a176b16
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 75 deletions.
34 changes: 17 additions & 17 deletions Compact RAM Cleaner/Controls/ColorDialogProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ public Color Color

public event EventHandler OnColorChanged;

public ColorDialogProvider()
protected override void OnMouseEnter(EventArgs e)
{
MouseEnter += (s, e) =>
{
_drawOutline = true;
Refresh();
};
base.OnMouseEnter(e);
_drawOutline = true;
Refresh();
}

MouseLeave += (s, e) =>
{
_drawOutline = false;
Refresh();
};
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
_drawOutline = false;
Refresh();
}

Click += (s, e) =>
{
var cd = new ColorDialog { Color = _color, FullOpen = true };
if (cd.ShowDialog() == DialogResult.OK)
Color = cd.Color;
};
protected override void OnClick(EventArgs e)
{
base.OnClick(e);
var cd = new ColorDialog { Color = _color, FullOpen = true };
if (cd.ShowDialog() == DialogResult.OK)
Color = cd.Color;
}

protected override void OnPaint(PaintEventArgs e)
Expand Down
19 changes: 18 additions & 1 deletion Compact RAM Cleaner/Controls/GroupPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,28 @@ public class GroupPanel : Panel
{
readonly int _indent = 10;
readonly int _cornerRadius = 6;
readonly Label _label;

string _title = "";
public string Title
{
get => _title;
set
{
_title = value;
_label.Text = _title;
}
}

public GroupPanel()
{
_label = new Label { AutoSize = true, Location = new Point(20, 3), Text = Title };
Controls.Add(_label);
}

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);

using (var pen = new Pen(SystemColors.ControlDarkDark))
e.Graphics.DrawRoundedRectangle(pen, new Rectangle(_indent, _indent, Width - (_indent * 2), Height - (_indent * 2)), _cornerRadius);
}
Expand Down
58 changes: 7 additions & 51 deletions Compact RAM Cleaner/Forms/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Compact RAM Cleaner/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,15 @@ public bool TryGetColor(string s, out Color color)
void UpdateTranslation()
{
LabelResetSettings.Text = Translations.GetString("ResetSettings");
LabelGroup1.Text = Translations.GetString("GeneralSettings");
groupPanel1.Title = Translations.GetString("GeneralSettings");
AutoUpdateCheck.Text = Translations.GetString("AutoUpdate");
AutorunCheck.Text = Translations.GetString("Autorun");
AutoClearCheck.Text = Translations.GetString("AutoClear");
CleaningResultsCheck.Text = Translations.GetString("ShowCleaningResults");
StartMinimizedCheck.Text = Translations.GetString("StartMinimized");
LabelGroup2.Text = Translations.GetString("Language");
groupPanel2.Title = Translations.GetString("Language");

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

LabelGroup4.Text = Translations.GetString("Style");
groupPanel4.Title = Translations.GetString("Style");
LabelCustomStyle.Text = Translations.GetString("Custom");

AboutLabel1.Text = Translations.GetString("AboutString1");
Expand Down
4 changes: 2 additions & 2 deletions Compact RAM Cleaner/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]

0 comments on commit a176b16

Please sign in to comment.