5yutan5 / PyQtDarkTheme

A flat dark theme for PySide and PyQt.
https://pyqtdarktheme.readthedocs.io
MIT License
513 stars 81 forks source link

Cannot change multiple colors. #223

Open josys36 opened 1 year ago

josys36 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.