Add comments and minor changes

This commit is contained in:
lupoDharkael
2017-05-27 13:08:09 +02:00
parent 9deb65e29c
commit 8cbe8e0c88
5 changed files with 10 additions and 4 deletions

View File

@@ -221,7 +221,8 @@ void Button::updateIconColor(const QColor &c) {
void Button::updateIconColor() {
setIcon(getIcon(m_buttonType, iconIsWhite()));
}
// iconIsWhite returns true if the passed color would contain a white icon
// if applied to a button, and false otherwise
bool Button::iconIsWhite(const QColor &c) {
bool isWhite = false;
if (c.value() < m_colorValueLimit ||