[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kile/2.1] src/widgets: Improve the visibility of BadBox messages in the LogWidget
From: Michel Ludwig <michel.ludwig () kdemail ! net>
Date: 2013-03-31 20:03:14
Message-ID: 20130331200314.84648A604F () git ! kde ! org
[Download RAW message or body]
Git commit ee5385a8975796d5322589a41400053dec572833 by Michel Ludwig.
Committed on 31/03/2013 at 22:01.
Pushed by mludwig into branch '2.1'.
Improve the visibility of BadBox messages in the LogWidget
Patch by Eugene Shalygin.
M +7 -1 src/widgets/logwidget.cpp
http://commits.kde.org/kile/ee5385a8975796d5322589a41400053dec572833
diff --git a/src/widgets/logwidget.cpp b/src/widgets/logwidget.cpp
index 5fd7b18..419c423 100644
--- a/src/widgets/logwidget.cpp
+++ b/src/widgets/logwidget.cpp
@@ -250,7 +250,13 @@ namespace KileWidget
if (KileConfig::hideProblemBadBox()) {
return;
}
- fontColor = "<font color='" + \
KColorScheme::shade(KStatefulBrush(KColorScheme::View, \
KColorScheme::NeutralText).brush(this).color(), KColorScheme::DarkShade).name() + \
"'>"; + {
+ // 'KColorScheme::scheme' doesn't take the background colour into account, so \
we have to do it manually + const QColor color = \
(KStatefulBrush(KColorScheme::View, \
KColorScheme::NormalBackground).brush(this).color().lightnessF() > 0.5) + \
? KColorScheme::shade(KStatefulBrush(KColorScheme::View, \
KColorScheme::NeutralText).brush(this).color(), KColorScheme::DarkShade) + \
: KColorScheme::shade(KStatefulBrush(KColorScheme::View, \
KColorScheme::NeutralText).brush(this).color(), KColorScheme::LightShade); \
+ fontColor = "<font color='" + color.name() + "'>"; + }
break;
default:
fontColor = "<font color='" + KStatefulBrush(KColorScheme::View, \
KColorScheme::NormalText).brush(this).color().name() + "'>";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic