| 597 | } |
| 598 | |
| 599 | QColor 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 | |
| 608 | void CodeEditor::paintDebugInfo(QPaintEvent *event) |
| 609 | { |