Skip to content

Commit

Permalink
Adjusted icon color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
medo64 committed Mar 25, 2021
1 parent 7d18908 commit afcb2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/icons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit afcb2c8

Please sign in to comment.