Project

General

Profile

Feature #7434

Allow setBackgroundColor() to change the alpha-level.

Added by Harm ​ over 1 year ago. Updated 3 months ago.

Status:
New
Priority:
Low
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Currently, setting an alpha-level with setBackgroundColor() does not have any effect.

 

 

For instance, the following code:

container->decorationStyle().setBackgroundColor(Wt::WColor(255, 0, 0, 128));

Produces a container with its color defined in rgb() instead of rgba():

<div id="o3knw4h" style="background-color:rgb(255,0,0);"></div>

This isn't really a bug since this has always been the case.

It is possible to change the alpha-level using CSS, and I guess that's what most people have been using.

 

 

Forum topic related to the issue: Can't set alpha-level of WContainerWidget


Related issues

Has duplicate Bug #8721: Wt::Color::Transparent is black (workaround)Closed06/23/2021

Actions
#1

Updated by Roel Standaert 3 months ago

  • Has duplicate Bug #8721: Wt::Color::Transparent is black (workaround) added
#2

Updated by Roel Standaert 3 months ago

  • Description updated (diff)
  • Target version set to future
#3

Updated by Roel Standaert 3 months ago

  • Assignee set to ruben kindt
  • Target version changed from future to 4.7.0

Also available in: Atom PDF