File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
contexts/themeContext/utils Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,13 @@ export const ReactionButton = (props: ReactionButtonProps) => {
29
29
const { Icon, onPress, selected, type } = props ;
30
30
const {
31
31
theme : {
32
- colors : { light_blue, white } ,
33
32
messageMenu : {
34
- reactionButton : { filledColor, unfilledColor } ,
33
+ reactionButton : {
34
+ filledBackgroundColor,
35
+ filledColor,
36
+ unfilledBackgroundColor,
37
+ unfilledColor,
38
+ } ,
35
39
reactionPicker : { buttonContainer, reactionIconSize } ,
36
40
} ,
37
41
} ,
@@ -49,7 +53,7 @@ export const ReactionButton = (props: ReactionButtonProps) => {
49
53
onPress = { onPressHandler }
50
54
style = { ( { pressed } ) => [
51
55
styles . reactionButton ,
52
- { backgroundColor : pressed || selected ? light_blue : white } ,
56
+ { backgroundColor : pressed || selected ? filledBackgroundColor : unfilledBackgroundColor } ,
53
57
buttonContainer ,
54
58
] }
55
59
>
Original file line number Diff line number Diff line change @@ -456,6 +456,8 @@ export type Theme = {
456
456
reactionButton : {
457
457
filledColor : ColorValue ;
458
458
unfilledColor : ColorValue ;
459
+ filledBackgroundColor : ColorValue ;
460
+ unfilledBackgroundColor : ColorValue ;
459
461
} ;
460
462
reactionPicker : {
461
463
buttonContainer : ViewStyle ;
@@ -1222,7 +1224,9 @@ export const defaultTheme: Theme = {
1222
1224
} ,
1223
1225
bottomSheet : { } ,
1224
1226
reactionButton : {
1227
+ filledBackgroundColor : Colors . light_blue ,
1225
1228
filledColor : Colors . accent_blue ,
1229
+ unfilledBackgroundColor : Colors . white ,
1226
1230
unfilledColor : Colors . grey ,
1227
1231
} ,
1228
1232
reactionPicker : {
You can’t perform that action at this time.
0 commit comments