Theming: Enable theming info bar

Use same role for info bar and search result widget

Change-Id: Ibe1f226d4ea8edaafb3daa1cc629e23a48322cf2
Reviewed-by: Thorben Kroeger <thorbenkroeger@gmail.com>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
This commit is contained in:
Orgad Shaneh
2014-11-09 18:09:39 +02:00
committed by Orgad Shaneh
parent c00e69acbc
commit 685ea30204
5 changed files with 14 additions and 10 deletions

View File

@@ -33,6 +33,8 @@
#include "coreconstants.h"
#include "icore.h"
#include <utils/theme/theme.h>
#include <QFrame>
#include <QHBoxLayout>
#include <QLabel>
@@ -40,6 +42,8 @@
static const char C_SUPPRESSED_WARNINGS[] = "SuppressedWarnings";
using namespace Utils;
namespace Core {
QSet<Id> InfoBar::globallySuppressed;
@@ -202,8 +206,8 @@ void InfoBarDisplay::update()
QFrame *infoWidget = new QFrame;
QPalette pal;
pal.setColor(QPalette::Window, QColor(255, 255, 225));
pal.setColor(QPalette::WindowText, Qt::black);
pal.setColor(QPalette::Window, creatorTheme()->color(Theme::InfoBarBackground));
pal.setColor(QPalette::WindowText, Theme::InfoBarText);
infoWidget->setPalette(pal);
infoWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);