From 0c7b11bdf85c134023a920de59b9dab60739d523 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 15:50:54 +0200 Subject: [PATCH] fix: improve shadow contrast without background overlay - Increase shadow opacity from 0.5 to 0.8 for better readability - Revert semi-transparent background approach per user feedback - Keep debugging logs to diagnose color detection --- src/hooks/useAdaptiveTextColor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useAdaptiveTextColor.ts b/src/hooks/useAdaptiveTextColor.ts index 75e5564e..55412db0 100644 --- a/src/hooks/useAdaptiveTextColor.ts +++ b/src/hooks/useAdaptiveTextColor.ts @@ -58,13 +58,13 @@ export function useAdaptiveTextColor(imageUrl: string | undefined): AdaptiveText console.log('Light background detected, using black text') setColors({ textColor: '#000000', - shadowColor: 'rgba(255, 255, 255, 0.5)' + shadowColor: 'rgba(255, 255, 255, 0.8)' }) } else { console.log('Dark background detected, using white text') setColors({ textColor: '#ffffff', - shadowColor: 'rgba(0, 0, 0, 0.5)' + shadowColor: 'rgba(0, 0, 0, 0.8)' }) } } catch (error) {