| 24 | |
| 25 | |
| 26 | static QByteArray ScintillaColorToCssColor(int color) |
| 27 | { |
| 28 | int r = color & 0xFF; |
| 29 | int g = (color >> 8) & 0xFF; |
| 30 | int b = (color >> 16) & 0xFF; |
| 31 | |
| 32 | return QStringLiteral("rgb(%1, %2, %3)").arg(r).arg(g).arg(b).toLatin1(); |
| 33 | } |
| 34 | |
| 35 | static void StyleToCss(QTextStream &stream, ScintillaNext *editor, int style) |
| 36 | { |