aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/colorschemeedit.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-07-24 09:42:35 +0300
committerOrgad Shaneh <orgads@gmail.com>2016-07-28 13:21:49 +0000
commitf398e7d22ac710dd8ed7bc110b56424e4e3c6b2f (patch)
tree6f8537299f2f6bed57d78490cc8372a826a11b2b /src/plugins/texteditor/colorschemeedit.cpp
parent589aef89e0c98849dda2356f5982644a779abe8f (diff)
TextEditor: Use initial palette for default colors
The theme might be incompatible with the text style settings, especially those that rely on the default palette (and were designed before themes were implemented). Task-number: QTCREATORBUG-16482 Change-Id: I8f63460ad250a494dcafd11366d7bacdbb71c142 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/texteditor/colorschemeedit.cpp')
-rw-r--r--src/plugins/texteditor/colorschemeedit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/colorschemeedit.cpp b/src/plugins/texteditor/colorschemeedit.cpp
index 198f03b11f..18b719ba2f 100644
--- a/src/plugins/texteditor/colorschemeedit.cpp
+++ b/src/plugins/texteditor/colorschemeedit.cpp
@@ -26,6 +26,8 @@
#include "colorschemeedit.h"
#include "ui_colorschemeedit.h"
+#include <utils/theme/theme.h>
+
#include <QAbstractListModel>
#include <QColorDialog>
@@ -148,6 +150,7 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
m_formatsModel(new FormatsModel(this)),
m_readOnly(false)
{
+ setPalette(Utils::Theme::initialPalette());
m_ui->setupUi(this);
m_ui->itemList->setModel(m_formatsModel);