Skip to content

Commit ef5474c

Browse files
committed
fix: add filled and unfilled bg color theme properties for ReactionListBottom
1 parent ce8a2e0 commit ef5474c

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,19 @@ export const ReactionListBottomItem = (props: ReactionListBottomItemProps) => {
6060
const scaleValue = useRef(new Animated.Value(1)).current;
6161
const {
6262
theme: {
63-
colors: { black, grey_gainsboro, light_blue },
63+
colors: { black },
6464
messageSimple: {
6565
reactionListBottom: {
66-
item: { container, countText, icon, iconFillColor, iconSize, iconUnFillColor },
66+
item: {
67+
container,
68+
countText,
69+
filledBackgroundColor,
70+
icon,
71+
iconFillColor,
72+
iconSize,
73+
iconUnFillColor,
74+
unfilledBackgroundColor,
75+
},
6776
},
6877
},
6978
},
@@ -134,7 +143,7 @@ export const ReactionListBottomItem = (props: ReactionListBottomItemProps) => {
134143
style={[
135144
styles.itemContainer,
136145
{
137-
backgroundColor: reaction.own ? light_blue : grey_gainsboro,
146+
backgroundColor: reaction.own ? filledBackgroundColor : unfilledBackgroundColor,
138147
transform: [{ scale: scaleValue }],
139148
},
140149
container,

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,12 @@ export type Theme = {
627627
item: {
628628
container: ViewStyle;
629629
countText: TextStyle;
630+
filledBackgroundColor: ColorValue;
630631
icon: ViewStyle;
631632
iconFillColor: ColorValue;
632633
iconSize: number;
633634
iconUnFillColor: ColorValue;
635+
unfilledBackgroundColor: ColorValue;
634636
};
635637
};
636638
reactionListTop: {
@@ -1412,10 +1414,12 @@ export const defaultTheme: Theme = {
14121414
item: {
14131415
container: {},
14141416
countText: {},
1417+
filledBackgroundColor: Colors.light_blue,
14151418
icon: {},
14161419
iconFillColor: Colors.accent_blue,
14171420
iconSize: 16,
14181421
iconUnFillColor: Colors.grey,
1422+
unfilledBackgroundColor: Colors.grey_gainsboro,
14191423
},
14201424
},
14211425
reactionListTop: {

0 commit comments

Comments
 (0)