Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
hotfix for close button showing a way too bright icon on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
n4n0GH committed Nov 26, 2019
1 parent ee0a53b commit 33828e6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions window-decoration/kdecoration/hellobutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,12 @@ namespace Hello
if(s){ color.setRgb(colorOther);
} else { color = customOtherColor; }
}

int y = (0.2126*color.red())+(0.7152*color.green())+(0.0722*color.blue());
if ( y > 128 ) { return color.lighter(40);
} else if ( y == 0 ) { return Qt::white;
} else { return color.lighter(240); }
if( !s ) {
int y = (0.2126*color.red())+(0.7152*color.green())+(0.0722*color.blue());
if ( y > 128 ) { return color.lighter(40);
} else if ( y == 0 ) { return Qt::white;
} else { return color.lighter(240); }
} else { return color.lighter(40); }

} else if ( c->isActive() && v ){

Expand Down

0 comments on commit 33828e6

Please sign in to comment.