csharp
public enum IconPaintKindWhere a path's colour comes from.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Three cases, and all three are needed. An icon set that only offers literals looks correct in the theme it was drawn for and wrong in the other one; one that only offers the inherited colour cannot draw a file-type glyph anybody can scan a grid by. The middle case is what lets an icon say "the warning colour" and still follow a retheme.
Fields and properties (4)
NoneNot painted at all. What a path with no stroke has for a stroke.
ForegroundThe element's color — what every icon drawn before this type existed used.
TokenA custom property read off the element, so the cascade decides it.
LiteralA colour written into the icon.
Used by (4)
- IconVixen.Ui.Controls
- IconPaintVixen.Ui.Controls
- IconContributionTestsVixen.Editor.App.Tests
- OutOfTreePluginTestsVixen.Editor.App.Tests