QssStylesheetEditor
QssStylesheetEditor copied to clipboard
Support for palettes
Some software use a Palette
Defined like this in Python
darkPalette = QPalette()
darkPalette.setColor(QPalette.WindowText, QColor(180, 180, 180))
darkPalette.setColor(QPalette.Button, QColor(53, 53, 53))
Then in the qss file it is used like this
QGroupBox {
background-color: palette(alternate-base);
border: 1px solid palette(midlight);
margin-top: 25px;
}
Example: https://github.com/gmarull/qtmodern
supported in version 1.7 setting the palette in the palette dialog, u can change the palette by color pick. using the palette in qss as follow format: background-color: palette(Window);