From 11adf48f4a4c676a4cb73b3f315ae18f1f231cea Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 26 Mar 2025 13:55:25 +0200 Subject: [PATCH] fix menu-item magenta --- src/services/theme_data/theme3_slot_functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/theme_data/theme3_slot_functions.js b/src/services/theme_data/theme3_slot_functions.js index d1441aebb..e7293a03c 100644 --- a/src/services/theme_data/theme3_slot_functions.js +++ b/src/services/theme_data/theme3_slot_functions.js @@ -112,7 +112,10 @@ export const colorFunctions = { const color = convert(findColor(colorArg, { dynamicVars, staticVars })).rgb const amount = Number(amountArg) - const effectiveBackground = dynamicVars.lowerLevelBackground + const effectiveBackground = dynamicVars.lowerLevelBackground ?? + dynamicVars.background ?? + dynamicVars.inheritedBackground ?? + staticVars[colorArg] const isLightOnDark = relativeLuminance(convert(effectiveBackground).rgb) < 0.5 const mod = isLightOnDark ? 1 : -1 return brightness(amount * mod, color).rgb