Commit e5c4500d authored by Milian Wolff's avatar Milian Wolff
Browse files

Use correct bgcolor for tinting

We are in a branch where the background is a nullopt, so this would
otherwise throw.
parent 9946986e
......@@ -135,7 +135,7 @@ void collectRanges(QTextFrame* frame, const QColor& fgcolor, const QColor& bgcol
if (!foreground || foreground == Qt::black) {
fmt.setForeground(fgcolor);
} else if (foreground->valueF() < 0.7) {
fmt.setForeground(WidgetColorizer::blendForeground(*foreground, 1.0, fgcolor, *background));
fmt.setForeground(WidgetColorizer::blendForeground(*foreground, 1.0, fgcolor, bgcolor));
}
} else {
auto bg = background.value_or(bgcolor);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment