Skip to content

Transparent SVG workspace images should show the configured node background color #3001

Description

@tschendel

Problem

When an SVG image with transparent areas is used as a workspace image for a diagram node in Capella, the transparent areas do not show the configured node background color.

Instead, the transparent SVG areas show the diagram/canvas background. This makes it difficult to use transparent SVG symbols together with Capella/Sirius styling, because the configured background color of the diagram element is visually ignored.

Expected Behavior

If a node has a configured background color and an SVG workspace image is rendered on top of it, transparent areas of the SVG should show the node background color.

Rendering order should effectively be:

  1. Paint the figure/node background color.
  2. Render the SVG image above it.
  3. Keep transparent SVG areas transparent, so the configured background color remains visible.

Current Behavior

Transparent SVG areas show the diagram/canvas background instead of the configured node background color.

Environment

Observed with:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions