Commit ea99cdde authored by Robert Knight's avatar Robert Knight
Browse files

Change only the background color to indicate no match found during output...

Change only the background color to indicate no match found during output search.  Leave the text color alone.  This makes the contents of the lineedit easier to read when a match is not found.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=796017
parent 366f9eaa
...@@ -224,11 +224,9 @@ void IncrementalSearchBar::setFoundMatch( bool match ) ...@@ -224,11 +224,9 @@ void IncrementalSearchBar::setFoundMatch( bool match )
{ {
if ( !match && !_searchEdit->text().isEmpty() ) if ( !match && !_searchEdit->text().isEmpty() )
{ {
KStatefulBrush foregroundBrush(KColorScheme::View,KColorScheme::NegativeText);
KStatefulBrush backgroundBrush(KColorScheme::View,KColorScheme::NegativeBackground); KStatefulBrush backgroundBrush(KColorScheme::View,KColorScheme::NegativeBackground);
QString styleSheet = QString("QLineEdit{ color:%1 ; background-color:%2 }") QString styleSheet = QString("QLineEdit{ background-color:%1 }")
.arg(foregroundBrush.brush(_searchEdit).color().name())
.arg(backgroundBrush.brush(_searchEdit).color().name()); .arg(backgroundBrush.brush(_searchEdit).color().name());
_searchEdit->setStyleSheet( styleSheet ); _searchEdit->setStyleSheet( styleSheet );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment