MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / textColor

Function textColor

src/plugins/git/utils/codeformathandler.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "common/util/qtcassert.h"
9
10static QColor textColor(uint code)
11{
12 QTC_ASSERT(code < 8, return QColor());
13
14 const int red = code & 1 ? 170 : 0;
15 const int green = code & 2 ? 170 : 0;
16 const int blue = code & 4 ? 170 : 0;
17 return QColor(red, green, blue);
18}
19
20QList<FormattedText> CodeFormatHandler::parseText(const FormattedText &input)
21{

Callers 1

parseTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected