From 949fb19b459574452b3d1df01bf30e92230e8232 Mon Sep 17 00:00:00 2001 From: Andreas Buchen Date: Sat, 30 Nov 2024 05:53:16 +0100 Subject: [PATCH] Fix cutover calculation from yellow to black for color schema Issue: #4306 --- .../portfolio/ui/views/dashboard/heatmap/ColorSchema.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java index c8b6ad7ba1..246bb88cf4 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java @@ -66,7 +66,7 @@ DoubleFunction buildColorFunction(ResourceManager resourceManager) var p = normalizePerformance(performance); // cutover from yellow to black at +0.05 performance - var cutover = (MAX_PERFORMANCE + 0.05f) / 2f * MAX_PERFORMANCE; + var cutover = (MAX_PERFORMANCE + 0.05f) / (2f * MAX_PERFORMANCE); return new ColorGradient(// new ColorPoint(Colors.theme().defaultBackground(), 0), //