From 179a28f76ddd1f1a3bf0072c623edfc1a2e0e001 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 11 Mar 2016 17:38:20 +0100 Subject: [PATCH] QmlProfiler: Choose state widget background from theme This way we don't get white text on light grey background. Change-Id: I632e692d0528d554e6ca90a4202d146c81d0ad66 Task-number: QTCREATORBUG-15842 Reviewed-by: Michal Klocek --- src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp index 580de058334..d8c4cd4edd0 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp @@ -26,6 +26,7 @@ #include "qmlprofilerstatewidget.h" #include +#include #include #include @@ -162,8 +163,7 @@ void QmlProfilerStateWidget::paintEvent(QPaintEvent *event) // Background - painter.setBrush(QColor("#E0E0E0")); - painter.setPen(QColor("#666666")); + painter.setBrush(Utils::creatorTheme()->color(Utils::Theme::BackgroundColorNormal)); painter.drawRoundedRect(QRect(borderWidth, 0, width()-2*borderWidth, height()-borderWidth), 6, 6); // restore painter