forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user