Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for palettes #14

Open
Jerakin opened this issue Feb 27, 2020 · 1 comment
Open

Support for palettes #14

Jerakin opened this issue Feb 27, 2020 · 1 comment
Labels
implemented New feature added.

Comments

@Jerakin
Copy link

Jerakin commented Feb 27, 2020

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

@hustlei hustlei added the developing feature is being developed. label Mar 14, 2020
@hustlei hustlei added implemented New feature added. and removed developing feature is being developed. labels Jul 6, 2021
@hustlei
Copy link
Owner

hustlei commented Jul 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implemented New feature added.
Projects
None yet
Development

No branches or pull requests

2 participants