Skip to content

Give controls an opacity #9

@tomrijnbeek

Description

@tomrijnbeek

Opacity is a property of a control that I can see recurring quite often. Right now there isn't really any way of making an entire control transparent. You'd have to multiply all the colours with the alpha and somehow not accidentally override that even if you're a few levels down in the control hierarchy.

My suggestion is to add an Opacity property to controls in a similar vain to the Frame. That is, a control can set its own immediate opacity (default = 1), which will then be multiplied by the parent opacity for the final calculated value.

While renderers will still have to keep this value in mind manually, it will at least make sure entire subtrees of controls are made transparent correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions