From 56307e6cadd99f2c1685d268cd7398af46e98f0e Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Fri, 23 Sep 2022 14:25:54 -0400 Subject: Enable dark title bar on windows when accent color is not used * Fix #6775 --- share/CMakeLists.txt | 4 ++++ share/windows/qt.conf | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 share/windows/qt.conf diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt index 34017e95c..90f7e6e68 100644 --- a/share/CMakeLists.txt +++ b/share/CMakeLists.txt @@ -66,6 +66,10 @@ if(APPLE) install(FILES macosx/keepassxc.icns DESTINATION ${DATA_INSTALL_DIR}) endif() +if(WIN32) + install(FILES windows/qt.conf DESTINATION ${BIN_INSTALL_DIR}) +endif() + install(FILES icons/application/256x256/apps/keepassxc.png DESTINATION ${DATA_INSTALL_DIR}/icons/application/256x256/apps) add_custom_target(icons) diff --git a/share/windows/qt.conf b/share/windows/qt.conf new file mode 100644 index 000000000..846f84c86 --- /dev/null +++ b/share/windows/qt.conf @@ -0,0 +1,2 @@ +[Platforms] +WindowsArguments = darkmode=1 -- cgit v1.2.3