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>
This commit is contained in:
Ulf Hermann
2016-03-11 17:38:20 +01:00
parent 859b218059
commit 179a28f76d

View File

@@ -26,6 +26,7 @@
#include "qmlprofilerstatewidget.h" #include "qmlprofilerstatewidget.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/theme/theme.h>
#include <QPainter> #include <QPainter>
#include <QVBoxLayout> #include <QVBoxLayout>
@@ -162,8 +163,7 @@ void QmlProfilerStateWidget::paintEvent(QPaintEvent *event)
// Background // Background
painter.setBrush(QColor("#E0E0E0")); painter.setBrush(Utils::creatorTheme()->color(Utils::Theme::BackgroundColorNormal));
painter.setPen(QColor("#666666"));
painter.drawRoundedRect(QRect(borderWidth, 0, width()-2*borderWidth, height()-borderWidth), 6, 6); painter.drawRoundedRect(QRect(borderWidth, 0, width()-2*borderWidth, height()-borderWidth), 6, 6);
// restore painter // restore painter