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

Commit

Permalink
fix #44
Browse files Browse the repository at this point in the history
  • Loading branch information
n4n0GH committed Dec 14, 2019
1 parent d113878 commit b66e4ce
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions window-decoration/kdecoration/hellobutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,20 @@ namespace Hello
if ( c->isActive() && buttonIcons != 3 ){
QColor color;
if( type() == DecorationButtonType::Close ) {
if(s){ color.setRgb(colorClose);
} else { color = customCloseColor; }
if(c->isCloseable() ){
if(s){ color.setRgb(colorClose);
} else { color = customCloseColor; }
}
} else if( type() == DecorationButtonType::Maximize ) {
if(s){ color.setRgb(colorMaximize);
} else { color = customMaxColor; }
if(c->isMaximizeable() ){
if(s){ color.setRgb(colorMaximize);
} else { color = customMaxColor; }
}
} else if( type() == DecorationButtonType::Minimize ) {
if(s){ color.setRgb(colorMinimize);
} else { color = customMinColor; }
if(c->isMinimizeable() ){
if(s){ color.setRgb(colorMinimize);
} else { color = customMinColor; }
}
} else if( type() == DecorationButtonType::Shade ) {
if(s){ color.setRgb(colorOther);
} else { color = customShadeColor; }
Expand Down

0 comments on commit b66e4ce

Please sign in to comment.