MCPcopy Create free account
hub / github.com/KDAB/hotspot / backgroundColor

Function backgroundColor

src/models/codedelegate.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17namespace {
18QColor backgroundColor(int line, bool isCurrent)
19{
20 const int degrees = (line * 139) % 360;
21 return QColor::fromHsv(degrees, 255, 255, isCurrent ? 60 : 40);
22}
23}
24
25CodeDelegate::CodeDelegate(int lineNumberRole, int highlightRole, int syntaxHighlightRole, QObject* parent)

Callers 1

paintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected