MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / heatColor

Method heatColor

MiniZincIDE/codeeditor.cpp:599–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599QColor CodeEditor::heatColor(double ratio)
600{
601//return interpolate(darkMode?QColor(191, 0, 0):QColor(Qt::red).lighter(110), QColor(Qt::transparent), ratio);
602// QColor bg = darkMode?QColor(0x26, 0x26, 0x26):Qt::white;
603 QColor bg = theme.backgroundColor.get(darkMode);
604 bg.setAlpha(50);
605 return interpolate(darkMode?QColor(191, 0, 0):QColor(Qt::red).lighter(110), bg, ratio);
606}
607
608void CodeEditor::paintDebugInfo(QPaintEvent *event)
609{

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected