QssStylesheetEditor icon indicating copy to clipboard operation
QssStylesheetEditor copied to clipboard

Support for palettes

Open Jerakin opened this issue 4 years ago • 1 comments

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

Jerakin avatar Feb 27 '20 13:02 Jerakin

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);

hustlei avatar Jul 06 '21 17:07 hustlei