You are here

Add new comment

I wanted to share with you something I discovered recently.
We can access the colors.conf directly from the qss.

Example:
#menuBar { background: palette(window); }

Search "PaletteRole" in
https://doc.qt.io/qt-6/stylesheet-reference.html
to see the colors you have access to.

This simplifies the construction of themes, and opens doors to making child themes easily.
For example, you can create a "light" child version of an originally "dark" theme without touching the qss.

Greetings