MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / ScintillaColorToCssColor

Function ScintillaColorToCssColor

src/HtmlConverter.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26static 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
35static void StyleToCss(QTextStream &stream, ScintillaNext *editor, int style)
36{

Callers 1

StyleToCssFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected