From afcb2c82a7a5b718c47540a2567ba8caf386fdcc Mon Sep 17 00:00:00 2001 From: Josip Medved Date: Wed, 24 Mar 2021 18:18:43 -0700 Subject: [PATCH] Adjusted icon color in dark mode --- src/icons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icons.cpp b/src/icons.cpp index c318ca8..b971a9f 100644 --- a/src/icons.cpp +++ b/src/icons.cpp @@ -302,9 +302,9 @@ QPixmap Icons::getPixmap(QString baseName, int size) { for (int x = 0; x < image.width(); x++) { for (int y = 0; y < image.height(); y++) { QColor color = image.pixelColor(x, y); - int h = color.hue() + 165; if (h > 359) { h = 359; } + int h = color.hue() + 135; if (h > 359) { h -= 360; } int s = color.saturation(); - int v = color.value() * 1.25; if (v > 255) { v = 255; } + int v = color.value() * 1.05; if (v > 255) { v = 255; } int a = color.alpha(); QColor newColor = QColor::fromHsv(h, s, v, a); image.setPixelColor(x, y, newColor);