# HG changeset patch # User Jacob Dawid # Date 1302550779 -7200 # Node ID 42de7a2d4d640d208a0a1cea591672071b971b9c # Parent 9b38634081796cd72db3af9e47b622be1ff3e52a Terminal window now sets to system colors. diff -r 9b3863408179 -r 42de7a2d4d64 gui//src/QTerminalWidget.cpp --- a/gui//src/QTerminalWidget.cpp Mon Apr 11 21:31:30 2011 +0200 +++ b/gui//src/QTerminalWidget.cpp Mon Apr 11 21:39:39 2011 +0200 @@ -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()