Skip to content

Spike: how to keep the node icon legible at high background opacity #1995

Description

@kmcginnes

Goal

Decide how a node icon should stay legible as its background opacity approaches 100%, where a solid background color currently obscures the icon (#1994). This is a prototyping spike: produce a recommendation and a rough prototype to react to, not a shipped fix.

Questions to resolve:

  • Threshold approach — does switching the icon to white or black once background opacity passes a threshold read well across the range of background colors and icons? Where does the threshold sit, and how is the white-vs-black choice made (e.g. background luminance)?
  • Compositing approach — can the icon be drawn above the background layer so opacity applies to the fill only, leaving the icon untouched? What does this cost in the Cytoscape node style mapping (toCyNodeStyle)?
  • Separate control — is a distinct icon-opacity (or icon-color) control warranted instead of deriving behavior from background opacity?
  • Interaction with the styling model — how does the chosen approach fit the direction in [Roadmap] Improved Style Options #1943 (Improved Style Options), so we do not build something the style revamp will immediately rework?

Related Issues


Important

Internal only — this issue is maintained by the core team and is not accepting external contributions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customizationCustomization options for rendering graph data in non-default waysexplorationIssues related to graph exploration, node & edge details, neighbor expansion, etcinternalSignals that the team will work on this issue internally.usabilityIssues relating to the ease of use of the UI or features

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions