From 94e202ead065bcdff5cf1c235dc459fbbd7b3faf Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 13 Mar 2023 20:56:19 +0100 Subject: [PATCH] Adapt dark mode info in README to Qt 6.5 --- README.md | 46 +++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index acdd499..846fff4 100644 --- a/README.md +++ b/README.md @@ -536,12 +536,23 @@ there are still [some problems](https://bugs.kde.org/show_bug.cgi?id=457802#c1). ### Workaround missing support for Windows 10 dark mode The dark mode introduced in Windows 10 does not affect traditional desktop -applications like Syncthing Tray. Unfortunately, Windows normal theming capabilities -[have been removed](https://superuser.com/questions/949920/window-color-and-appearance-removed-in-win10). -So far Qt does not offer much to improve the situation (see "List of bugs" below). +applications like Syncthing Tray. If you select the widgets style "Fusion" under +"Qt/Appearance", Syncthing Tray will no longer use native styling of traditional +desktop apps and follow the dark mode setting (as +[Qt 6.5 added dark mode support](https://www.qt.io/blog/dark-mode-on-windows-11-with-qt-6.5)). -However, it is possible to use Syncthing Tray's custom appearance settings to -achieve a dark theming: +It is also recommended to apply some further tweaks: + +* To make general icons fit with the dark color palette, configure an + appropriate icon them, e.g. select "Breeze Dark" as icon theme in Syncthing + Tray's settings under "Qt/Appearance". +* To make Syncthing icons fit with the dark color palette, configure their + colors in Syncthing Tray's settings under "Tray/UI icons" and "Tray/System + icons". The "Use preset" button allows to select pre-defined colors suitable for + a dark color palette. + +When using an older Qt version than 6.5 you will also have to resort to more manual +tweaking: * To enable dark colors for Syncthing Tray's UI elements, configure a dark color palette in Syncthing Tray's settings under "Qt/Appearance". You can download and @@ -557,25 +568,17 @@ achieve a dark theming: [Platforms] WindowsArguments = darkmode=1 ``` -* To make general icons fit with the dark color palette, configure an - appropriate icon them, e.g. select "Breeze Dark" as icon theme in Syncthing - Tray's settings under "Qt/Appearance". -* To make Syncthing icons fit with the dark color palette, configure their - colors in Syncthing Tray's settings under "Tray/UI icons" and "Tray/System - icons". The "Use preset" button allows to select pre-defined colors suitable for - a dark color palette. -* Select the widgets style "Fusion" under "Qt/Appearance". This is required - because the native styling provided by Windows for traditional desktop - applications does not look very nice when using a dark color palette. After changing these settings, restart Syncthing Tray. It is not sufficient to close the last Windows; the process needs to be restarted. -It is also possible to enable Windows' "High contrast" setting which seems to -bring back the traditional theming/coloring but unfortunately doesn't look very -nice overall. Check https://github.com/tomasz1986/classic2000 to see how Windows -looks like with high contrast applied, or if you're in need for themes that look -at least nicer than what's shipped with Windows. +Note that one can alternatively also enable Windows' "High contrast" setting which +seems to bring back the traditional theming/coloring (which has normally been +[removed](https://superuser.com/questions/949920/window-color-and-appearance-removed-in-win10)). +Unfortunately it doesn't look very nice overall. Checkout +https://github.com/tomasz1986/classic2000 to see how Windows looks like with high +contrast applied, or if you're in need for themes that look at least nicer than +what's shipped with Windows. ### Enable experimental support for Windows' per-monitor DPI awareness (V2) [PMv2](https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows#per-monitor-and-per-monitor-v2-dpi-awareness) @@ -593,6 +596,8 @@ section. Note that the Plasmoid is not affected by this limitation. * While the tray menu is shown its entry is shown in the taskbar. Not sure whether there is a way to avoid this. * Qt bugs + * Qt < 6.5: + * The dark mode introduced in Windows 10 is not supported, see https://bugreports.qt.io/browse/QTBUG-72028. * Qt < 5.14 * Any self-signed certificate is accepted when using Qt WebEngine due to https://bugreports.qt.io/browse/QTBUG-51176. * Qt < 5.9: @@ -603,7 +608,6 @@ section. * The tray disconnects from the local instance when the network connection goes down. The network connection must be restored or the tray restarted to be able to connect to local Syncthing again. This is caused by Qt bug https://bugreports.qt.io/browse/QTBUG-60949. - * The dark mode introduced in Windows 10 is not supported, see https://bugreports.qt.io/browse/QTBUG-72028. * KDE limitations * High-DPI scaling of Plasmoid is broken under X11 (https://bugs.kde.org/show_bug.cgi?id=356446). * Plasma < 5.26.0: