aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/srceditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qtmips_gui/srceditor.cpp b/qtmips_gui/srceditor.cpp
index 2d4a5ec..aaed0f2 100644
--- a/qtmips_gui/srceditor.cpp
+++ b/qtmips_gui/srceditor.cpp
@@ -35,6 +35,7 @@
#include <QFile>
#include <QFileInfo>
+#include <QPalette>
#include <QTextDocumentWriter>
#include <QTextCursor>
#include <QTextBlock>
@@ -52,6 +53,12 @@ void SrcEditor::setup_common() {
setFont(font);
tname = "Unknown";
highlighter = new HighlighterAsm(document());
+
+ QPalette p = palette();
+ p.setColor(QPalette::Active, QPalette::Base, Qt::white);
+ p.setColor(QPalette::Inactive, QPalette::Base, Qt::white);
+ p.setColor(QPalette::Disabled, QPalette::Base, Qt::white);
+ setPalette(p);
}
SrcEditor::SrcEditor(QWidget *parent) : Super(parent) {