aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2017-05-08 14:27:04 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2017-05-10 11:20:44 +0000
commit94e02994bb121adfa70c0543e9f5f3cbe4d20e45 (patch)
treeb680b4ccaeb3a7cdff79a311a38d762d1a6e06b8 /src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
parent8c2467d48d80967d313bce6e761323587ea70646 (diff)
QmlDesigner: Adjust color
The rectangle that indicates selection has now the selection color. Change-Id: I59bcd070bfb8b16f297e648ff53d83c8953b4896 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
index 859716b087..baef77541f 100644
--- a/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/formeditoritem.cpp
@@ -30,6 +30,8 @@
#include <nodehints.h>
#include <nodemetainfo.h>
+#include <utils/theme/theme.h>
+
#include <QDebug>
#include <QPainter>
#include <QStyleOptionGraphicsItem>
@@ -220,6 +222,7 @@ void FormEditorItem::paintBoundingRect(QPainter *painter) const
pen.setJoinStyle(Qt::MiterJoin);
QColor frameColor("#AAAAAA");
+ static const QColor selectionColor = Utils::creatorTheme()->color(Utils::Theme::QmlDesigner_FormEditorSelectionColor);
if (scene()->showBoundingRects()) {
pen.setColor(frameColor.darker(150));
@@ -230,7 +233,7 @@ void FormEditorItem::paintBoundingRect(QPainter *painter) const
}
if (m_highlightBoundingRect) {
- pen.setColor(frameColor);
+ pen.setColor(selectionColor);
pen.setStyle(Qt::SolidLine);
painter->setPen(pen);
painter->drawRect(m_selectionBoundingRect.adjusted(0., 0., -1., -1.));