IgnaceMaes / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
2.86k stars 831 forks source link

materialCheckbox indeterminate State #97

Closed MikeGWem closed 8 years ago

MikeGWem commented 8 years ago

materialCheckBox has no support for the indeterminate state. Simplest solution might be as follows: Define a new Point array private static readonly Point[] INDETERMINATE_LINE = { new Point(4, 9), new Point(14, 9) }; change the code drawing the check mark to support both states thus:

if(CheckState == CheckState.Indeterminate) { g.DrawLines(cmpen, INDETERMINATE_LINE); } else { g.DrawLines(cmpen, CHECKMARK_LINE); }

IgnaceMaes commented 8 years ago

This would be a great contribution. Feel free to open a pull request.

Considering this isn't exactly an issue I'm closing this.