Is there a way to change the title bar theme to dark in PyQT5?
19:13 04 Mar 2023

Windows has three title bar theme modes, dark, light, custom color. I was wondering if I could change the title bar in my pyqt5 app to use the dark theme.

I know of the qt.conf file method where you put:

[Platforms]
WindowsArguments = darkmode=1

to do dark theme if windows dark mode is on. But is this available for PyQT5 as well?

Top = windows dark title bar (disregard the tab)

bottom = My app (currently)

enter image description here

python python-3.x pyqt5 darkmode