Actions
Feature #7434
closedAllow setBackgroundColor() to change the alpha-level.
Start date:
Due date:
% Done:
100%
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
Updated by Roel Standaert over 3 years ago
- Has duplicate Bug #8721: Wt::Color::Transparent is black (workaround) added
Updated by Roel Standaert over 3 years ago
- Description updated (diff)
- Target version set to future
Updated by Roel Standaert over 3 years ago
- Assignee set to ruben kindt
- Target version changed from future to 4.7.0
Updated by Roel Standaert almost 3 years ago
- Status changed from New to Resolved
Updated by Roel Standaert almost 3 years ago
- Status changed from Resolved to Closed
Actions