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
This commit is contained in:
Gigi
2025-10-15 15:50:54 +02:00
parent 8c151a5855
commit 0c7b11bdf8

View File

@@ -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) {