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 @@ -456,6 +456,8 @@ export type Theme = {
456456 reactionButton : {
457457 filledColor : ColorValue ;
458458 unfilledColor : ColorValue ;
459+ filledBackgroundColor : ColorValue ;
460+ unfilledBackgroundColor : ColorValue ;
459461 } ;
460462 reactionPicker : {
461463 buttonContainer : ViewStyle ;
@@ -1222,7 +1224,9 @@ export const defaultTheme: Theme = {
12221224 } ,
12231225 bottomSheet : { } ,
12241226 reactionButton : {
1227+ filledBackgroundColor : Colors . light_blue ,
12251228 filledColor : Colors . accent_blue ,
1229+ unfilledBackgroundColor : Colors . white ,
12261230 unfilledColor : Colors . grey ,
12271231 } ,
12281232 reactionPicker : {
You can’t perform that action at this time.
0 commit comments