Skip to content

Display colors for signed integer values #194

@thakyZ

Description

@thakyZ

Is your feature request related to a problem? Please describe.

I have found that the plugin does not take into account the signed nature of an integer-based color, at least when it comes to Java programming. And this would be very useful as many colors for my needs need to be an integer and cannot be something more compatible like a long.

Describe the solution you'd like

When calculating colors from integers, also take into account the fact the integer may be signed, as it does not appear to do so.

Describe alternatives you've considered

I am not sure of other alternatives.

I guess a toggle option for those who explicitly don't want the plugin to consider the signed nature of integers, but that would also require the plugin to take into account the sign(s) in front of the color as it does not already.

Additional context

An example of the plugin not recognizing the color above but also not showing that the variable COLOR_RED is negative in the color editor, as well as displaying a completely wrong color per: https://argb-int-calculator.netlify.app/.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions