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) => {
2929 const { Icon, onPress, selected, type } = props ;
3030 const {
3131 theme : {
32- colors : { light_blue, white } ,
3332 messageMenu : {
34- reactionButton : { filledColor, unfilledColor } ,
33+ reactionButton : {
34+ filledBackgroundColor,
35+ filledColor,
36+ unfilledBackgroundColor,
37+ unfilledColor,
38+ } ,
3539 reactionPicker : { buttonContainer, reactionIconSize } ,
3640 } ,
3741 } ,
@@ -49,7 +53,7 @@ export const ReactionButton = (props: ReactionButtonProps) => {
4953 onPress = { onPressHandler }
5054 style = { ( { pressed } ) => [
5155 styles . reactionButton ,
52- { backgroundColor : pressed || selected ? light_blue : white } ,
56+ { backgroundColor : pressed || selected ? filledBackgroundColor : unfilledBackgroundColor } ,
5357 buttonContainer ,
5458 ] }
5559 >
Original file line number Diff line number Diff line change @@ -480,6 +480,8 @@ export type Theme = {
480480 reactionButton : {
481481 filledColor : ColorValue ;
482482 unfilledColor : ColorValue ;
483+ filledBackgroundColor : ColorValue ;
484+ unfilledBackgroundColor : ColorValue ;
483485 } ;
484486 reactionPicker : {
485487 buttonContainer : ViewStyle ;
@@ -1274,7 +1276,9 @@ export const defaultTheme: Theme = {
12741276 } ,
12751277 bottomSheet : { } ,
12761278 reactionButton : {
1279+ filledBackgroundColor : Colors . light_blue ,
12771280 filledColor : Colors . accent_blue ,
1281+ unfilledBackgroundColor : Colors . white ,
12781282 unfilledColor : Colors . grey ,
12791283 } ,
12801284 reactionPicker : {
You can’t perform that action at this time.
0 commit comments