diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-07-24 09:42:35 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-07-28 13:21:49 +0000 |
commit | f398e7d22ac710dd8ed7bc110b56424e4e3c6b2f (patch) | |
tree | 6f8537299f2f6bed57d78490cc8372a826a11b2b /src/plugins/texteditor/colorschemeedit.cpp | |
parent | 589aef89e0c98849dda2356f5982644a779abe8f (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.cpp | 3 |
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); |