mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user