TextEditor: Fix calculating block highlight background color

Fixes: QTCREATORBUG-30649
Change-Id: I9a213ecdf4d58ed6531014c99bbdedac8ac9ef00
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2024-04-22 14:19:18 +02:00
parent 3292745a0a
commit 592d7f0c94

View File

@@ -4381,7 +4381,7 @@ static QColor calcBlendColor(const QColor &baseColor, int level, int count)
if (level == count - 1) if (level == count - 1)
return color90; return color90;
const int blendFactor = level * (256 / (count - 2)); const int blendFactor = level * (256 / (count - 1));
return blendColors(color80, color90, blendFactor); return blendColors(color80, color90, blendFactor);
} }