author | harlekin <harlekin> | 2002-10-24 13:01:08 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 13:01:08 (UTC) |
commit | b007fdcf8708d377a25c93de49c4febb19651e1a (patch) (side-by-side diff) | |
tree | 0164139f0c17fc6b3578e7318d09690a17e05f21 | |
parent | 6d502006357bdfa3f2f03d8227dcc7e04fdcc93c (diff) | |
download | opie-b007fdcf8708d377a25c93de49c4febb19651e1a.zip opie-b007fdcf8708d377a25c93de49c4febb19651e1a.tar.gz opie-b007fdcf8708d377a25c93de49c4febb19651e1a.tar.bz2 |
now a readable orange for orange on black color sheme
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index bb3dd28..b2b107e 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp @@ -86,98 +86,97 @@ void EmulationHandler::setColor( const QColor& fore, const QColor& back ) { table[i].transparent = 0; }else { table[i].color = defaultCt[i].color; } } m_teWid->setColorTable(table ); m_teWid->update(); } QFont EmulationHandler::font( int id ) { QString name; int size = 0; switch(id ) { default: // fall through case 0: name = QString::fromLatin1("Micro"); size = 4; break; case 1: name = QString::fromLatin1("Fixed"); size = 7; break; case 2: name = QString::fromLatin1("Fixed"); size = 12; break; } QFont font(name, size, QFont::Normal ); font.setFixedPitch(TRUE ); return font; } QColor EmulationHandler::foreColor(int col) { QColor co; /* we need to switch it */ switch( col ) { default: case Profile::White: /* color is black */ co = Qt::white; break; case Profile::Black: co = Qt::black; break; case Profile::Green: qWarning("Foreground green"); co = Qt::green; break; case Profile::Orange: qWarning("Foreground orange"); - // FIXME needs better color here - co = Qt::darkYellow; + co.setRgb( 231, 184, 98 ); break; } return co; } QColor EmulationHandler::backColor(int col ) { QColor co; /* we need to switch it */ switch( col ) { default: case Profile::White: /* color is white */ co = Qt::black; break; case Profile::Black: co = Qt::white; break; case Profile::Green: qWarning("Background black"); co = Qt::black; break; case Profile::Orange: qWarning("Background black"); co = Qt::black; break; } return co; } QPushButton* EmulationHandler::cornerButton() { return m_teWid->cornerButton(); } Script *EmulationHandler::script() { return m_script; } bool EmulationHandler::isRecording() { return (m_script != 0); } void EmulationHandler::startRecording() { if (!isRecording()) m_script = new Script(); } |