aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2024-04-22 14:19:18 +0200
committerDavid Schulz <david.schulz@qt.io>2024-04-23 05:51:07 +0000
commit592d7f0c942cc5a804dd07613dc2c5822eee4306 (patch)
treed7da7ce22946791917d0a60ac8f3deb66169a74f /src/plugins/texteditor
parent3292745a0aa2ffd221b958f36cbef197c8ff2ef6 (diff)
TextEditor: Fix calculating block highlight background color
Fixes: QTCREATORBUG-30649 Change-Id: I9a213ecdf4d58ed6531014c99bbdedac8ac9ef00 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r--src/plugins/texteditor/texteditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp
index 280ca8e433..1d90c7481f 100644
--- a/src/plugins/texteditor/texteditor.cpp
+++ b/src/plugins/texteditor/texteditor.cpp
@@ -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);
}