Skip to content

Commit

Permalink
Use light palette in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 22, 2024
1 parent eb0ced7 commit 579a478
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@
#include "ProgressBarCounterTest.h"
#include "ProgressBarInfiniteTest.h"

namespace
{
void setLightPalette()
{
QPalette palette;
palette.setColor(QPalette::Window, QColor(240, 240, 240));
QApplication::setPalette(palette);
}
} // namespace

int main(int argc, char* argv[])
{
const QApplication a(argc, argv);
QApplication a(argc, argv);

setLightPalette();

DoubleSliderTest doubleSliderTest;
QTest::qExec(&doubleSliderTest);
Expand Down
Binary file modified tests/res/counterFinished.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/counterInitial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/counterUpdated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/infinityInitial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/infinityUpdated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 579a478

Please sign in to comment.