2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 16:27:43 +00:00

Fixes with in-app console

This commit is contained in:
Jack Andersen
2018-01-03 13:53:01 -10:00
parent 3f2f8f6b35
commit f29e44209e
5 changed files with 322 additions and 262 deletions

View File

@@ -167,37 +167,38 @@ void ParseEscapeSequence(int attribute, QListIterator<QString>& i, QTextCharForm
}
}
} else {
/* Normally dark colors, but forced to light colors for visibility */
switch (colorIndex) {
case 0 : {
color = Qt::black;
color = Qt::darkGray;
break;
}
case 1 : {
color = Qt::darkRed;
color = Qt::red;
break;
}
case 2 : {
color = Qt::darkGreen;
color = Qt::green;
break;
}
case 3 : {
color = Qt::darkYellow;
color = Qt::yellow;
break;
}
case 4 : {
color = Qt::darkBlue;
color = Qt::blue;
break;
}
case 5 : {
color = Qt::darkMagenta;
color = Qt::magenta;
break;
}
case 6 : {
color = Qt::darkCyan;
color = Qt::cyan;
break;
}
case 7 : {
color = Qt::lightGray;
color = Qt::white;
break;
}
default : {
@@ -448,9 +449,9 @@ void ParseEscapeSequence(int attribute, QListIterator<QString>& i, QTextCharForm
Q_ASSERT(false);
}
}
color.setRedF(color.redF() * 0.8);
color.setGreenF(color.greenF() * 0.8);
color.setBlueF(color.blueF() * 0.8);
//color.setRedF(color.redF() * 0.8);
//color.setGreenF(color.greenF() * 0.8);
//color.setBlueF(color.blueF() * 0.8);
textCharFormat.setForeground(color);
break;
}
@@ -502,9 +503,9 @@ void ParseEscapeSequence(int attribute, QListIterator<QString>& i, QTextCharForm
Q_ASSERT(false);
}
}
color.setRedF(color.redF() * 0.8);
color.setGreenF(color.greenF() * 0.8);
color.setBlueF(color.blueF() * 0.8);
//color.setRedF(color.redF() * 0.8);
//color.setGreenF(color.greenF() * 0.8);
//color.setBlueF(color.blueF() * 0.8);
textCharFormat.setBackground(color);
break;
}