Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
Some future release
-
None
Description
I love that I can use palette colors in a Qt style sheet. It makes it possible to tweak the appearance while at the same time following the color guide lines given by the palette. However, I am missing the possibility of making a palette color transparent. I have a few possible solutions:
- Allow a second opacity parameter when specifying a palette color, e.g. color: palette(dark) 50%. This method is my favorite because it could also work for named colors, e.g. color: blue 40%. The second parameter should follow the same rules as the alpha value in the rgba function.
- Add a new palettea function that takes a second opacity argument.
- Extend the usage of todays opacity property to all widgets. This is the least favorable solution since the opacity would apply to all widget colors (e.g. background and border). In addition it would be impossible to specify different opacity for colors in a gradient.