aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-05-22 13:48:31 +0000
committerGravatar Fabio Bas2010-05-22 13:48:31 +0000
commit45fa154e5afcf72c2a1b50ccecdb253c5b878df8 (patch)
tree5cad97c31fa2beb2665f138082b3b30f7af89f79 /src
parentfix for #698, and hopefully for #613, too (needs testing!) (diff)
downloadKVIrc-45fa154e5afcf72c2a1b50ccecdb253c5b878df8.tar.gz
KVIrc-45fa154e5afcf72c2a1b50ccecdb253c5b878df8.tar.bz2
KVIrc-45fa154e5afcf72c2a1b50ccecdb253c5b878df8.zip
added workaround for #777
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4355 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/ui/kvi_themedlineedit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kvirc/ui/kvi_themedlineedit.cpp b/src/kvirc/ui/kvi_themedlineedit.cpp
index 999c48f93..7529d9219 100644
--- a/src/kvirc/ui/kvi_themedlineedit.cpp
+++ b/src/kvirc/ui/kvi_themedlineedit.cpp
@@ -53,8 +53,10 @@ KviThemedLineEdit::~KviThemedLineEdit()
void KviThemedLineEdit::applyOptions()
{
+ // workaround for gtk+ style forcing a crappy white background (ticket #777)
+ bool bIsCrappyGtkStyle = (QString("QGtkStyle").compare(qApp->style()->metaObject()->className())==0);
QString szStyle = QString("QLineEdit { background: transparent; color: %1; font-family: %2; font-size: %3pt; font-weight: %4; font-style: %5;}")
- .arg(KVI_OPTION_MIRCCOLOR(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore()).name())
+ .arg(bIsCrappyGtkStyle ? QColor(0,0,0).name() : KVI_OPTION_MIRCCOLOR(KVI_OPTION_MSGTYPE(KVI_OUT_NONE).fore()).name())
.arg(KVI_OPTION_FONT(KviOption_fontLabel).family())
.arg(KVI_OPTION_FONT(KviOption_fontLabel).pointSize())
.arg(KVI_OPTION_FONT(KviOption_fontLabel).weight() == QFont::Bold ? "bold" : "normal")