Skip to content

Commit

Permalink
font color
Browse files Browse the repository at this point in the history
  • Loading branch information
tewarid committed Feb 6, 2020
1 parent 27760b5 commit 2748c84
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
27 changes: 26 additions & 1 deletion FontTool/MainForm.Designer.cs

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

10 changes: 10 additions & 0 deletions FontTool/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,15 @@ private void ShowStyle(FontStyle fontStyle)
underline.Checked = ((fontStyle & FontStyle.Underline) != FontStyle.Regular);
strikeout.Checked = ((fontStyle & FontStyle.Strikeout) != FontStyle.Regular);
}

private void Color_Click(object sender, EventArgs e)
{
DialogResult result = colorDialog.ShowDialog();
if (result != DialogResult.OK)
{
return;
}
display.ForeColor = colorDialog.Color;
}
}
}
3 changes: 3 additions & 0 deletions FontTool/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,7 @@
<metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>126, 17</value>
</metadata>
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>259, 17</value>
</metadata>
</root>

0 comments on commit 2748c84

Please sign in to comment.