okular/shell
Nicholas Omann f0e3581bab Enable Support for Dark Theme for Titlebar in Windows
When using the windows dark theme it's annoying to have white titlebars on some apps. I noticed that this app which and I would like to use on Windows but the lack of dark theme on the titlebar makes it not fit in well. I did some research on this and found that the best way to set it seems to be using the darkmode toggle on the platform. That can be set as a parameter or environment variable. This seems to be the easiest way to set it. I tested this locally on a Win11 VM and it looks to work the same as setting -platform windows:darkmode=1 or setting QT_QPA_PLATFORM=windows:darkmode=1. Note this does need to be set before the QApplication is originally created and so I think it has to be done per app to work. If I missed some other way to set this that would be better I would be interested to know more.

QT Docs: https://doc.qt.io/qt-5/qguiapplication.html#platform-specific-arguments
2022-12-17 00:00:36 +00:00
..
CMakeLists.txt Create welcome screen 2022-03-08 04:24:45 +00:00
main.cpp Enable Support for Dark Theme for Titlebar in Windows 2022-12-17 00:00:36 +00:00
okular_main.cpp Fix "endl" use 2022-04-08 16:37:44 +02:00
okular_main.h Put author and mail on same SPDX-FileCopyrightText line 2021-06-10 08:11:56 +00:00
org.kde.okular.appdata.xml Add 22.08.1 Windows binary to appstream data 2022-12-01 22:24:41 +01:00
org.kde.okular.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2022-11-10 01:51:04 +00:00
recentitemsmodel.cpp Attempt to fix the MSVC build 2022-03-08 14:22:43 +01:00
recentitemsmodel.h Create welcome screen 2022-03-08 04:24:45 +00:00
shell.cpp Set minimum requirement to Ubuntu 22.04 2022-11-19 09:48:15 +00:00
shell.h Create welcome screen 2022-03-08 04:24:45 +00:00
shell.rc ui.rc files: consistently use <gui> instead of deprecated <kpartgui> 2020-11-28 17:29:11 +01:00
shellutils.cpp Adds option editor-cmd to the commandline 2022-02-18 13:33:28 +00:00
shellutils.h Adds option editor-cmd to the commandline 2022-02-18 13:33:28 +00:00
welcomescreen.cpp [WelcomeView] Improve locating a file in the file manager 2022-10-04 21:05:39 +00:00
welcomescreen.h Create welcome screen 2022-03-08 04:24:45 +00:00
welcomescreen.ui Merge remote-tracking branch 'origin/release/22.04' 2022-06-09 11:21:35 +02:00