Skip to content

Commit

Permalink
fix Converter format
Browse files Browse the repository at this point in the history
* fix FontSize Input
* fix Ctrl + Space shortcut
* refine resizing
  • Loading branch information
luvletter2333 committed Jun 12, 2021
1 parent fab4fb0 commit c3df63d
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 218 deletions.
10 changes: 5 additions & 5 deletions Form1.Designer.cs

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

5 changes: 3 additions & 2 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void Form1_Load(object sender, EventArgs e)
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
var keyData = e.KeyData;
if (keyData == (Keys.Control | Keys.Space))
if (keyData == (Keys.Control | Keys.ProcessKey))
{ //Fade to Blank
Console.WriteLine("ShortCut: Ctrl + Space");
btn_Clear_Fade_Click();
Expand Down Expand Up @@ -645,7 +645,8 @@ private void txt_sub2Y_TextChanged(object sender, EventArgs e)

private void txt_fontSize_TextChanged(object sender, EventArgs e)
{
renderConfig.fontSize = scroll_fontSize.Value = Convert.ToInt32(txt_fontSize.Text);
renderConfig.fontSize = Convert.ToSingle(txt_fontSize.Text);
scroll_fontSize.Value = (int) renderConfig.fontSize * 10;
NotifyChanges();
}

Expand Down
Loading

0 comments on commit c3df63d

Please sign in to comment.