Skip to content

Commit

Permalink
Fix isDark() function
Browse files Browse the repository at this point in the history
  • Loading branch information
callaa committed May 3, 2019
1 parent b174d68 commit 7d81c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/utils/icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static bool is_dark_theme = false;

bool isDark(const QColor &c)
{
const qreal luminance = c.redF() * 0.216 + c.greenF() * 0.7152 + c.redF() * 0.0722;
const qreal luminance = c.redF() * 0.216 + c.greenF() * 0.7152 + c.blueF() * 0.0722;

return luminance <= 0.5;
}
Expand Down

0 comments on commit 7d81c59

Please sign in to comment.