summaryrefslogtreecommitdiff
path: root/noncore/apps
Unidiff
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_handler.cpp3
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
@@ -110,50 +110,49 @@ QFont EmulationHandler::font( int id ) {
110 break; 110 break;
111 } 111 }
112 QFont font(name, size, QFont::Normal ); 112 QFont font(name, size, QFont::Normal );
113 font.setFixedPitch(TRUE ); 113 font.setFixedPitch(TRUE );
114 return font; 114 return font;
115} 115}
116QColor EmulationHandler::foreColor(int col) { 116QColor EmulationHandler::foreColor(int col) {
117 QColor co; 117 QColor co;
118 /* we need to switch it */ 118 /* we need to switch it */
119 switch( col ) { 119 switch( col ) {
120 default: 120 default:
121 case Profile::White: 121 case Profile::White:
122 /* color is black */ 122 /* color is black */
123 co = Qt::white; 123 co = Qt::white;
124 break; 124 break;
125 case Profile::Black: 125 case Profile::Black:
126 co = Qt::black; 126 co = Qt::black;
127 break; 127 break;
128 case Profile::Green: 128 case Profile::Green:
129 qWarning("Foreground green"); 129 qWarning("Foreground green");
130 co = Qt::green; 130 co = Qt::green;
131 break; 131 break;
132 case Profile::Orange: 132 case Profile::Orange:
133 qWarning("Foreground orange"); 133 qWarning("Foreground orange");
134 // FIXME needs better color here 134 co.setRgb( 231, 184, 98 );
135 co = Qt::darkYellow;
136 break; 135 break;
137 } 136 }
138 137
139 return co; 138 return co;
140} 139}
141QColor EmulationHandler::backColor(int col ) { 140QColor EmulationHandler::backColor(int col ) {
142 QColor co; 141 QColor co;
143 /* we need to switch it */ 142 /* we need to switch it */
144 switch( col ) { 143 switch( col ) {
145 default: 144 default:
146 case Profile::White: 145 case Profile::White:
147 /* color is white */ 146 /* color is white */
148 co = Qt::black; 147 co = Qt::black;
149 break; 148 break;
150 case Profile::Black: 149 case Profile::Black:
151 co = Qt::white; 150 co = Qt::white;
152 break; 151 break;
153 case Profile::Green: 152 case Profile::Green:
154 qWarning("Background black"); 153 qWarning("Background black");
155 co = Qt::black; 154 co = Qt::black;
156 break; 155 break;
157 case Profile::Orange: 156 case Profile::Orange:
158 qWarning("Background black"); 157 qWarning("Background black");
159 co = Qt::black; 158 co = Qt::black;