Skip to content

Commit

Permalink
draw checkbox with SmoothingMode.AntiAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Mar 7, 2021
1 parent 9080a85 commit 1b460e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UI/CheckBoxRendererEx.vb
@@ -1,4 +1,5 @@
Imports System.Windows.Forms.VisualStyles
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms.VisualStyles
Imports StaxRip.UI

Public Class CheckBoxRendererEx
Expand All @@ -8,6 +9,8 @@ Public Class CheckBoxRendererEx
End Sub

Public Shared Sub DrawCheckBox(g As Graphics, rect As Rectangle, state As CheckBoxState)
g.SmoothingMode = SmoothingMode.AntiAlias

If ThemeManager.CurrentTheme.Name = ThemeManager.DefaultThemeName OrElse DesignHelp.IsDesignMode Then
CheckBoxRenderer.DrawCheckBox(g, rect.Location, state)
Return
Expand Down

0 comments on commit 1b460e9

Please sign in to comment.