VCS: Theme output pane

Change-Id: I256377d87a91fa101fd53fd65b966d629deb1179
Reviewed-by: Thorben Kroeger <thorbenkroeger@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Orgad Shaneh
2015-03-30 10:28:19 +03:00
committed by Orgad Shaneh
parent 7b228cd860
commit cf0fbfef47

View File

@@ -34,6 +34,7 @@
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <utils/outputformatter.h> #include <utils/outputformatter.h>
#include <utils/theme/theme.h>
#include <QPlainTextEdit> #include <QPlainTextEdit>
#include <QTextCharFormat> #include <QTextCharFormat>
@@ -115,13 +116,14 @@ OutputWindowPlainTextEdit::OutputWindowPlainTextEdit(QWidget *parent) :
m_commandFormat(m_defaultFormat), m_commandFormat(m_defaultFormat),
m_messageFormat(m_defaultFormat) m_messageFormat(m_defaultFormat)
{ {
using Utils::Theme;
setReadOnly(true); setReadOnly(true);
setUndoRedoEnabled(false); setUndoRedoEnabled(false);
setFrameStyle(QFrame::NoFrame); setFrameStyle(QFrame::NoFrame);
m_errorFormat.setForeground(Qt::red); m_errorFormat.setForeground(Utils::creatorTheme()->color(Theme::OutputPanes_ErrorMessageTextColor));
m_warningFormat.setForeground(Qt::darkYellow); m_warningFormat.setForeground(Utils::creatorTheme()->color(Theme::OutputPanes_WarningMessageTextColor));
m_commandFormat.setFontWeight(QFont::Bold); m_commandFormat.setFontWeight(QFont::Bold);
m_messageFormat.setForeground(Qt::blue); m_messageFormat.setForeground(Utils::creatorTheme()->color(Theme::OutputPanes_MessageOutput));
m_formatter = new Utils::OutputFormatter; m_formatter = new Utils::OutputFormatter;
m_formatter->setPlainTextEdit(this); m_formatter->setPlainTextEdit(this);
} }