we initialize all colors in the palette, so this init methos is most
probably not doing anything useful
crashes when doing in automated tests
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
#if defined(Q_OS_WIN)
// Windows does not provide a dark theme for Win32 apps so let's come up with a palette
// Credit to https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle
- reserveDarkPalette = qApp->palette();
-
reserveDarkPalette.setColor(QPalette::WindowText, Qt::white);
reserveDarkPalette.setColor(QPalette::Button, QColor(127, 127, 127));
reserveDarkPalette.setColor(QPalette::Light, QColor(20, 20, 20));