Skip to content

Commit

Permalink
v000.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xdanieldzd committed Nov 23, 2021
1 parent 6de3f08 commit 8d47d22
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion StoicGoose/StoicGoose.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>0.3.0</Version>
<Version>0.4.0</Version>
<Authors />
<Company>xdaniel</Company>
<Copyright>Written 2021 by xdaniel</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion StoicGoose/WinForms/Controls/LabelEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected override void OnPaint(PaintEventArgs e)
case ContentAlignment.TopRight: flags |= TextFormatFlags.Top | TextFormatFlags.Right; break;
}
var rect = e.ClipRectangle;
rect.Offset(-4, -2);
rect.Offset(-2, -2);
TextRenderer.DrawText(e.Graphics, Text, Font, rect, ForeColor, flags);
}
}
Expand Down
3 changes: 1 addition & 2 deletions StoicGoose/WinForms/Controls/TableLayoutPanelEx.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;

Expand All @@ -13,7 +12,7 @@ public class TableLayoutPanelEx : TableLayoutPanel
protected override void OnHandleCreated(EventArgs e)
{
if (!DesignMode && Environment.OSVersion?.Platform == PlatformID.Win32NT && Environment.OSVersion?.Version.Major >= 6)
Debug.Assert(SetWindowTheme(Handle, "explorer", null) == 0);
_ = SetWindowTheme(Handle, "explorer", null);

base.OnHandleCreated(e);
}
Expand Down
3 changes: 1 addition & 2 deletions StoicGoose/WinForms/Controls/TreeViewEx.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;

Expand All @@ -13,7 +12,7 @@ public class TreeViewEx : TreeView
protected override void OnHandleCreated(EventArgs e)
{
if (!DesignMode && Environment.OSVersion?.Platform == PlatformID.Win32NT && Environment.OSVersion?.Version.Major >= 6)
Debug.Assert(SetWindowTheme(Handle, "explorer", null) == 0);
_ = SetWindowTheme(Handle, "explorer", null);

base.OnHandleCreated(e);
}
Expand Down

0 comments on commit 8d47d22

Please sign in to comment.