Mercurial > hg > octave-terminal
changeset 13405:42de7a2d4d64
Terminal window now sets to system colors.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Mon, 11 Apr 2011 21:39:39 +0200 |
parents | 9b3863408179 |
children | 91d64ef98f81 |
files | gui//src/QTerminalWidget.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//src/QTerminalWidget.cpp +++ b/gui//src/QTerminalWidget.cpp @@ -32,10 +32,11 @@ TermWidgetImpl::TermWidgetImpl(QWidget* parent) { + QPalette palette = QApplication::palette(); m_session = createSession(); m_terminalDisplay = createTerminalDisplay(this->m_session, parent); - m_terminalDisplay->setBackgroundColor(QColor(255, 255, 255)); - m_terminalDisplay->setForegroundColor(QColor(0, 0, 0)); + m_terminalDisplay->setBackgroundColor(palette.color(QPalette::Base)); + m_terminalDisplay->setForegroundColor(palette.color(QPalette::Text)); } Session *TermWidgetImpl::createSession()