@SimonSchroeder said in OS-independent colour scheme with PySide6:
@SGaist said in OS-independent colour scheme with PySide6:
I am wondering whether the red should be a bit darker in the the dark mode.
This could certainly help. In the same way, it could help to make the white lines a light gray instead.
I'd love to do that, but there lies my "Qt rookie" problem again, I see many ways but don't know best practice. I have presently used roles everywhere, and the lines have the "text" role which makes them white in Win 11 dark mode. When a light/dark switch happens while the app is open, QT6 does everything for me, except the green background of the "Weight" input field, which signifies a valid SymPy expression. I made that with style sheets, so it updates only when the field redraws. Right after a dark-to-light switch the field will still be a darker green with white text.
Would the proper way be to do the gray line with style sheets, detect a mode change, and redraw, or can I add roles that then update automatically at light/dark switch? Or should I work with two palettes?