- Updated
Color.FromArgb()
overloads andnew Color()
andnew Color32()
constructors strategies to support leading argument names. - Updated
new Color()
andnew Color32()
constructors strategy to support target-typednew
expressions.
- Publication error.
- Fixed some cases where floating points was not correctly recognized (#29).
- Support for zero-less float for
new Color
(e.g..5f
). - Fixed some float values being invalid for
new Color
because it would lead to a non-integer number when multiplied by 255. Those numbers are now floor rounded. - Fixed Unity's
new Color
andnew Color32
targetinga, r, g, b
instead ofr, g, b, a
(#25).
- Support for Unity
Color32
(#25).
- Support for Unity static colors (#24).
- Fixed some missing color names (
WhiteSmoke
,Yellow
andYellowGreen
).
- Support for Unity colors (#24).
new Color(float, float, float)
.new Color(float, float, float, float)
.- Allows
UnityEngine.
leading qualifier.
- Fixed
Color.FromArgb
(any overload) not allowing leading+
. - Fixed
Color.FromArgb
not being highlighted when used with four arguments and there is one or more spaces before the first comma. - Source code is now more succinct and less error prone.
Removed the command from the palette.
Performance improvements.
Fixed the close parenthesis being highlighted (FromArgb
).
Fixed misplaced highlight when the method invocation has valid whitespace (FromArgb
).
The extension is now only activated when a C# file is open, instead of starting up with VS Code.
Meta changes only.
Changed command from extension.colorHighlight
to csharp-colors.colorHighlight
.
Implemented support for Color.FromName
, which works for the same names as Color.?
and KnownColor.?
, except Transparent
and Empty
.
The extension now has a preview icon.
Minor adjustments.
KnownColor
now supports system colors, but with fixed colors based on mono, not getting the actual system color.
Fixed extension not working for files opened after the extension is loaded.
Minor adjustments.
- Every
int
parameter now supports decimal, hex and binary, even if the parameters are mixed. - Underscore (
_
) digit separator is now supported. - Whitespace between tokens are now supported.
- Errors are not swallowed anymore. Previous code which used to depend on errors is now rewritten. No errors are expected. If you see any, please report them.
Initial release.