Skip to content

Commit

Permalink
Code changes for v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Jul 13, 2021
1 parent c20aacb commit d788f03
Show file tree
Hide file tree
Showing 12 changed files with 234 additions and 134 deletions.
21 changes: 4 additions & 17 deletions Hashing/AboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ private void t2_Tick(object sender, EventArgs e)
string s7 = "deadmoo";
string s8 = "deadmoon";
string s9 = "deadmoon © ";
string s10 = "deadmoon © 2";
string s11 = "deadmoon © 20";
string s12 = "deadmoon © 201";
string s13 = "deadmoon © 2018";
string s10 = "deadmoon © ∞";

switch (l2.Text)
{
Expand Down Expand Up @@ -90,27 +87,17 @@ private void t2_Tick(object sender, EventArgs e)
break;
case "deadmoon © ":
l2.Text = s10;
break;
case "deadmoon © 2":
l2.Text = s11;
break;
case "deadmoon © 20":
l2.Text = s12;
break;
case "deadmoon © 201":
l2.Text = s13;
t2.Stop();
//t1.Start();
break;
case "deadmoon © 2018":
case "deadmoon © ":
l2.Text = s0;
break;
}
}

private void l2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://elgaming.eu/deadmoon");
Process.Start("https://github.com/hellzerg/hashing");
}

private void t1_Tick(object sender, EventArgs e)
Expand All @@ -120,7 +107,7 @@ private void t1_Tick(object sender, EventArgs e)
const string s2 = "Ha";
const string s3 = "Has";
const string s4 = "Hash";
const string s5 = "Hashi";
const string s5 = "Hashi";
const string s6 = "Hashin";
const string s7 = "Hashing";

Expand Down
32 changes: 16 additions & 16 deletions Hashing/CompareForm.Designer.cs

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

49 changes: 49 additions & 0 deletions Hashing/Controls/ColoredCheckBox.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
using System;
using System.Drawing;
using System.Windows.Forms;

namespace Hashing
{
public class ColoredCheckBox : CheckBox
{
protected override void OnCheckedChanged(EventArgs e)
{
base.OnCheckedChanged(e);

// custom theming
if (this.Checked)
{
this.Tag = "themeable";
this.Font = new Font(this.Font, FontStyle.Underline);

switch (Options.CurrentOptions.Color)
{
case Theme.Caramel:
this.ForeColor = Color.DarkOrange;
break;
case Theme.Lime:
this.ForeColor = Color.LimeGreen;
break;
case Theme.Magma:
this.ForeColor = Color.Tomato;
break;
case Theme.Minimal:
this.ForeColor = Color.Gray;
break;
case Theme.Ocean:
this.ForeColor = Color.DodgerBlue;
break;
case Theme.Zerg:
this.ForeColor = Color.MediumOrchid;
break;
}
}
else
{
this.Tag = string.Empty;
this.ForeColor = Color.White;
this.Font = new Font(this.Font, FontStyle.Regular);
}
}
}
}
49 changes: 49 additions & 0 deletions Hashing/Controls/ColoredRadioButton.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
using System;
using System.Drawing;
using System.Windows.Forms;

namespace Hashing
{
public class ColoredRadioButton : RadioButton
{
protected override void OnCheckedChanged(EventArgs e)
{
base.OnCheckedChanged(e);

// custom theming
if (this.Checked)
{
this.Tag = "themeable";
this.Font = new Font(this.Font, FontStyle.Underline);

switch (Options.CurrentOptions.Color)
{
case Theme.Caramel:
this.ForeColor = Color.DarkOrange;
break;
case Theme.Lime:
this.ForeColor = Color.LimeGreen;
break;
case Theme.Magma:
this.ForeColor = Color.Tomato;
break;
case Theme.Minimal:
this.ForeColor = Color.Gray;
break;
case Theme.Ocean:
this.ForeColor = Color.DodgerBlue;
break;
case Theme.Zerg:
this.ForeColor = Color.MediumOrchid;
break;
}
}
else
{
this.Tag = string.Empty;
this.ForeColor = Color.White;
this.Font = new Font(this.Font, FontStyle.Regular);
}
}
}
}
6 changes: 6 additions & 0 deletions Hashing/Hashing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
<Compile Include="CompareForm.Designer.cs">
<DependentUpon>CompareForm.cs</DependentUpon>
</Compile>
<Compile Include="Controls\ColoredCheckBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\ColoredRadioButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="FileSummary.cs" />
<Compile Include="IdenticalsForm.cs">
<SubType>Form</SubType>
Expand Down
28 changes: 14 additions & 14 deletions Hashing/IdenticalsForm.Designer.cs

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

Loading

0 comments on commit d788f03

Please sign in to comment.