Skip to content

Commit

Permalink
remove this call that is probably useless and crashing tests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mgallien committed Nov 21, 2024
1 parent 52f066d commit e4cd551
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libsync/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,6 @@ Theme::Theme()
#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));
Expand Down

0 comments on commit e4cd551

Please sign in to comment.