Skip to content

[Subsurface Viewer] Color Dot for wells in readout is always black #2825

Description

@Anders2303
Image

Noticed that the color-dot in the info-card is black regardless of well color. Seems to be due this change that was added in #2747 . The "normalization" here puts the RGB values to 0-1, but the rgb() utility expects the colors to be 0-255, and only the alpha to be 0-1. I'd argue this pattern is the "normal" way to present RBGA arrays, so the normalizer function should reflect this (and docs updated accordingly).

// InfoCard.tsx::119
<span
     style={{
         color: rgb(
             ...toNormalizedRGBAColor(
                  propertyRow.color
             )
         ).toString(),
     }}
>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CeeSolTask owned by Ceetron SolutionsbugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions