Page 1 of 1
Black window title bar when dark theme is active
Posted: Fri Jan 12, 2024 5:29 am
by Lord_D
Window title bar is white when dark theme is active:
It is posible to make it black
by adding to qt.conf those lines:
Code: Select all
[Platforms]
WindowsArguments = darkmode=1
or launching XnView with platform argument:
Code: Select all
"C:\Program Files\XnViewMP\xnviewmp.exe" -platform windows:darkmode=1
To achieve this behavior programmatically,
Qt Blog suggests to set the environment variable in the main function via
Code: Select all
qsetenv("QT_QPA_PLATFORM", "windows:darkmode=1")
Re: Black window title bar when dark theme is active
Posted: Tue Apr 02, 2024 8:53 am
by DarkDarkEverything
Lord_D wrote: Fri Jan 12, 2024 5:29 am
by adding to qt.conf those lines:
Code: Select all
[Platforms]
WindowsArguments = darkmode=1
That worked, thank you very much, would be great if that could be the default.
Oh, no. I just upgraded to the latest version (downloaded the Windows Setup) and the setting was rightout overwritten.
So changing the qt.conf file isn't really an option.
And command line parameters aren't an option either when using XNViewMP as the default image viewer.
So basically the program can do it but doesn't use its own functionality

Re: Black window title bar when dark theme is active
Posted: Fri Apr 12, 2024 8:39 pm
by KLE-France
+1
Re: Black window title bar when dark theme is active
Posted: Sat Apr 13, 2024 8:36 am
by KLE-France
Beyond the "+1", this excellent suggestion should also extend to the "Black" and "Old dark" themes as well. Bref, the Window's title bar should be harmonized with the color scheme.
Re: Black window title bar when dark theme is active
Posted: Sun Apr 14, 2024 3:08 pm
by xnview
currently the only way is to change qt.conf