@@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next'
4
4
import { Animated , Text , TouchableOpacity , View } from 'react-native'
5
5
import { createStyleSheet , useStyles } from 'react-native-unistyles'
6
6
import { useFoodFilterStore } from '@/hooks/useFoodFilterStore'
7
- import { getContrastColor } from '@/utils/ui-utils'
8
7
9
8
import PlatformIcon from '../Universal/Icon'
10
9
@@ -77,24 +76,35 @@ export const AllergensBanner = ({
77
76
78
77
const stylesheet = createStyleSheet ( ( theme ) => ( {
79
78
bannerContainer : {
80
- backgroundColor : theme . colors . secondary ,
79
+ backgroundColor : theme . colors . primaryBackground ,
81
80
borderRadius : theme . radius . md ,
82
81
marginBottom : 10 ,
83
82
marginTop : 2 ,
84
- padding : 10
83
+ padding : 10 ,
84
+ borderWidth : 1 ,
85
+ borderColor : `${ theme . colors . primary } 20` ,
86
+ shadowColor : theme . colors . primary ,
87
+ shadowOffset : {
88
+ width : 0 ,
89
+ height : 1
90
+ } ,
91
+ shadowOpacity : 0.1 ,
92
+ shadowRadius : 2 ,
93
+ elevation : 2
85
94
} ,
86
95
bannerText : {
87
- color : getContrastColor ( theme . colors . secondary ) ,
96
+ color : theme . colors . text ,
88
97
fontSize : 14 ,
89
- marginTop : 3
98
+ marginTop : 3 ,
99
+ opacity : 0.8
90
100
} ,
91
101
bannerTitle : {
92
- color : getContrastColor ( theme . colors . secondary ) ,
102
+ color : theme . colors . primary ,
93
103
fontSize : 16 ,
94
104
fontWeight : 'bold'
95
105
} ,
96
106
contrastColor : {
97
- color : getContrastColor ( theme . colors . secondary )
107
+ color : theme . colors . primary
98
108
} ,
99
109
dismissButton : {
100
110
borderRadius : theme . radius . md ,
0 commit comments