AtomMaterialUI / color-highlighter

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

`Color.FromArgb` incorrect format (RGBA vs ARGB) #67

Closed PerfectlyFineCode closed 2 years ago

PerfectlyFineCode commented 2 years ago

Describe the bug Color.FromArgb detection thinks it's RGBA so color does not match

To Reproduce

  1. Just write out Color.FromArgb(255, 0, 0, 0).
  2. it will highlight it as red, but in fact the 255 value is the alpha value (A)

Expected Behavior It should be black (0, 0, 0) with an opacity of 255 (100%).

Environment

JetBrains Rider 2022.1.1
Build #RD-221.5591.20, built on April 28, 2022
Licensed to [REDACTED]
Subscription is active until [REDACTED].
Runtime version: 11.0.14.1+1-b2043.45 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
.NET Framework 4.0.30319.42000
GC: G1 Young Generation, G1 Old Generation
Memory: 1500M
Cores: 24
Registry:
    ide.lookup.shrink=true
    documentation.show.toolbar=true
    ide.balloon.shadow.size=0
    indexing.enable.entity.provider.based.indexing=false
    rdclient.asyncActions=false
    ide.new.project.model.index.case.sensitivity=true

Non-Bundled Plugins:
    org.example.githubpang.rossynt (221.1.0)
    me.seclerp.rider.plugins.efcore (1.4.0)
    idea.plugin.protoeditor (221.5591.19)
    com.markskelton.one-dark-theme (5.6.0)
    com.intellij.resharper.StructuredLogging (2022.1.0.188)
    com.intellij.resharper.HeapAllocationsViewer (2022.1.0)
    com.intellij.javafx (1.0.4)
    com.github.copilot (1.1.24.1610)
    cognitivecomplexity-rider (2022.1.0)
    avalonia-rider (1.0.0.2140933515)
    com.mallowigi.colorHighlighter (10.0.0)
    String Manipulation (9.4.1)
    Key Promoter X (2022.1.2)
    mobi.hsz.idea.gitignore (4.4.0)
    CyclomaticComplexity (2022.1.0)

Screenshots

image

mallowigi commented 2 years ago

Yeah it's a known issue. I have to add an option to switch from argb to rgba, I just haven't got the time to go back to this project yet.