forked from qt-creator/qt-creator
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:
@@ -4381,7 +4381,7 @@ static QColor calcBlendColor(const QColor &baseColor, int level, int count)
|
||||
if (level == count - 1)
|
||||
return color90;
|
||||
|
||||
const int blendFactor = level * (256 / (count - 2));
|
||||
const int blendFactor = level * (256 / (count - 1));
|
||||
|
||||
return blendColors(color80, color90, blendFactor);
|
||||
}
|
||||
|
Reference in New Issue
Block a user