From fce9e7c708eacbd91b81bc7bdfa7789e69317bea Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 25 Jul 2009 20:13:35 +0200 Subject: Fixing codestyle and changing a bit red color --- src/findbar.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/findbar.cpp b/src/findbar.cpp index b2dc5344..0656eef5 100644 --- a/src/findbar.cpp +++ b/src/findbar.cpp @@ -151,17 +151,19 @@ void FindBar::notifyMatch(bool match) if (m_lineEdit->text().isEmpty()) { - p.setColor(QPalette::Base, QColor(KApplication::palette().color(QPalette::Active, QPalette::Base))); + p.setColor(QPalette::Base, QColor(KApplication::palette().color(QPalette::Active, QPalette::Base))); } - else if (match) + else { - p.setColor(QPalette::Base, QColor(186, 249, 206)); + if (match) + { + p.setColor(QPalette::Base, QColor(186, 249, 206)); + } + else + { + p.setColor(QPalette::Base, QColor(247, 130, 130)); // previous were 247, 230, 230 + } } - else - { - p.setColor(QPalette::Base, QColor(247, 230, 230)); - } - m_lineEdit->setPalette(p); } -- cgit v1.2.1