Skip to content

Use transparency when color transparency is not set #1439

@titaniumtraveler

Description

@titaniumtraveler

Motivation

A friend looking into using dunst got confused about transparency option
being marked as X11 only, which led us to discussing the issue and me having the
idea of why not use transparency as fallback on wayland if the transparency
is not set for a color.

That would also make writing cross-(wayland/X11) configs and
upgrading to wayland much nicer.

Proposed Idea

On wayland default colors that don't set the A part of #RGBA to
the value of transparency.
((100 - transparency) * 0x100 / 100) to be specific)

Alternatives

Make the documentation clearer.
For example with

- transparency (default: 0) (X11 only)
+ transparency (default: 0) (X11 only, for wayland see COLORS)

When people see that the option is for X11 only, it is likely they don't even
bother reading the content.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions