From 25096185c91c9188d8e887ed9d00fca7d07470ef Mon Sep 17 00:00:00 2001 From: ljain112 Date: Mon, 12 Aug 2024 17:09:39 +0530 Subject: [PATCH] fix: text color in sales funnel report based on theme (cherry picked from commit 61bc0925d52291d87ad73b72ffb8b59b6360d0b7) # Conflicts: # erpnext/selling/page/sales_funnel/sales_funnel.js --- erpnext/selling/page/sales_funnel/sales_funnel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/selling/page/sales_funnel/sales_funnel.js b/erpnext/selling/page/sales_funnel/sales_funnel.js index 954705b5c32..efe38305a8a 100644 --- a/erpnext/selling/page/sales_funnel/sales_funnel.js +++ b/erpnext/selling/page/sales_funnel/sales_funnel.js @@ -248,7 +248,11 @@ erpnext.SalesFunnel = class SalesFunnel { context.fill(); // draw text +<<<<<<< HEAD context.fillStyle = ""; +======= + context.fillStyle = getComputedStyle(document.body).getPropertyValue("--text-color"); +>>>>>>> 61bc0925d5 (fix: text color in sales funnel report based on theme) context.textBaseline = "middle"; context.font = "1.1em sans-serif"; context.fillText(__(title), width + 20, y_mid);