From 8c2940fb798150af56ee36af694a92ceb710ebf1 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Mon, 23 Mar 2015 09:12:58 +0100 Subject: [PATCH 4/5] Fixed foreground color for pressed buttons --- kdecoration/breezebutton.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kdecoration/breezebutton.cpp b/kdecoration/breezebutton.cpp index 1a3c0c2b0f66a2c8582798b82dee97dcc7785b12..591824838152532c5868c137d9268163161ac83c 100644 --- a/kdecoration/breezebutton.cpp +++ b/kdecoration/breezebutton.cpp @@ -348,7 +348,11 @@ namespace Breeze auto d = qobject_cast( decoration() ); if( !d ) return QColor(); - if( type() == KDecoration2::DecorationButtonType::Close ) { + if( isPressed() ) { + + return d->titleBarColor(); + + } else if( type() == KDecoration2::DecorationButtonType::Close ) { return d->titleBarColor(); -- 2.3.3