AtomMaterialUI / color-highlighter

JetBrains plugin to preview colors directly from within the code.
MIT License
40 stars 23 forks source link

Recognize Hex Color Errors in Kotlin #109

Closed FrankMilesFrms closed 1 year ago

FrankMilesFrms commented 1 year ago

This is the color the plugin dispalys :

image

But this is the correct result: image

FrankMilesFrms commented 1 year ago

The Hex color is not properly represented in kotlin. Note: The latter shows images from android studio's built-in features

mallowigi commented 1 year ago

Have you tried this setting: "use rgba instead of argb"?

CleanShot 2023-04-20 at 19 43 14@2x
FrankMilesFrms commented 1 year ago

Oh...You are right, thanks.

bric3 commented 4 months ago

@mallowigi Couldn't that (arbg or rgba) be autodetected for Color or JBColor ?

This can help showing a color for incorrect hex sequence. E.g. while writing the hex sequence AD is incorrect.

image