PyQtDarkTheme icon indicating copy to clipboard operation
PyQtDarkTheme copied to clipboard

Cannot change multiple colors.

Open josys36 opened this issue 2 years ago • 2 comments

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 avatar Jan 13 '23 02:01 josys36

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.

josys36 avatar Jan 13 '23 19:01 josys36

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.

5yutan5 avatar Jan 14 '23 04:01 5yutan5