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

Cannot change multiple colors. #223

Open
josys36 opened this issue Jan 13, 2023 · 2 comments
Open

Cannot change multiple colors. #223

josys36 opened this issue Jan 13, 2023 · 2 comments

Comments

@josys36
Copy link

josys36 commented Jan 13, 2023

In using the examples provided I am able to change the background color to black "background":"#000000" however I cannot get the input color on a QLineEdit to change no matter what I do. I'm not getting any errors, it's just not changing. How does one change multiple colors at once?

@josys36
Copy link
Author

josys36 commented Jan 13, 2023

I did figure this out. However, I can only change multiple colors when using style sheets, and no when using a pallet. However, I'm OK with that since I can get the colors and style I want using a style sheet.

@5yutan5
Copy link
Owner

5yutan5 commented Jan 14, 2023

Hi @josys36.
I think you already solved about input color, but this is a list of colors that can be changed in QLineEdit.
https://pyqtdarktheme.readthedocs.io/en/stable/reference/theme_color.html#input

Available color id are different in Qpalette and Qt stylesheet but unfortunately not documented yet.
However, you can check which colors are used in codebase.
https://github.com/5yutan5/PyQtDarkTheme/blob/main/style/palette.template.py
Currently only foreground, treeSectionHeader.background, primary, background, list.alternateBackground, border and their disabled are available.

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

No branches or pull requests

2 participants