diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-11 17:38:20 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-11 16:59:09 +0000 |
commit | 179a28f76ddd1f1a3bf0072c623edfc1a2e0e001 (patch) | |
tree | 0b2012672fba548e88f1e89d5782a66b61f0da1f /src/plugins/qmlprofiler | |
parent | 859b218059f541f8acc310d0832be6b63272ffff (diff) | |
download | qt-creator-179a28f76ddd1f1a3bf0072c623edfc1a2e0e001.tar.gz |
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 <michal.klocek@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp index 580de05833..d8c4cd4edd 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatewidget.cpp @@ -26,6 +26,7 @@ #include "qmlprofilerstatewidget.h" #include <utils/qtcassert.h> +#include <utils/theme/theme.h> #include <QPainter> #include <QVBoxLayout> @@ -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 |