From ef16d73349ad4319aa53a804106cf049c8f6f820 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 3 Jun 2010 01:22:42 +0200 Subject: Fix suggestion colors. This patch is heavily based on thijs merge request about. He fixed just the alternating colors and with the wrong one. This patch should let rekonq urlbar follow KDE color settings --- src/urlbar/listitem.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/urlbar') diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index 78a929a8..0ab8c2d4 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -66,9 +66,8 @@ ListItem::ListItem(const UrlSearchItem &item, QWidget *parent) m_option.direction = Qt::LeftToRight; QPalette p(palette()); - p.setColor(QPalette::Base, Qt::white); // TODO: choose the correct color - - p.setColor(QPalette::AlternateBase, QColor(247, 247, 247)); // TODO: choose the correct color + p.setColor(QPalette::Base, Application::palette().color(QPalette::Base)); + p.setColor(QPalette::AlternateBase, Application::palette().color(QPalette::AlternateBase)); setPalette(p); deactivate(); -- cgit v1.2.1