feat:proper badge theme use for server list (#8313)
* fix(MM-61209): mention badge incorrect theme color * @asaadmahmood color correction * @asaadmahmood borderWidth 1px * remove borderWidth: 1
This commit is contained in:
parent
aa85f22729
commit
97e74c92af
2 changed files with 4 additions and 5 deletions
|
|
@ -66,7 +66,7 @@ export default function Badge({
|
|||
...restStyle
|
||||
} = (StyleSheet.flatten(style) || {}) as TextStyle;
|
||||
|
||||
const borderColor = borderColorProp || styleBorderColor || theme.mentionBg;
|
||||
const borderColor = borderColorProp || styleBorderColor || theme.centerChannelBg;
|
||||
const textColor = color || theme.mentionColor;
|
||||
let lineHeight = Platform.select({android: 21, ios: 16.5});
|
||||
let fontSize = 12;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({
|
|||
badge: {
|
||||
left: 18,
|
||||
top: -5,
|
||||
borderColor: theme.centerChannelBg,
|
||||
},
|
||||
button: {
|
||||
borderRadius: 8,
|
||||
|
|
@ -404,9 +403,9 @@ const ServerItem = ({
|
|||
<View style={serverStyle}>
|
||||
{!switching &&
|
||||
<ServerIcon
|
||||
badgeBackgroundColor={theme.mentionColor}
|
||||
badgeBorderColor={theme.mentionBg}
|
||||
badgeColor={theme.mentionBg}
|
||||
badgeBackgroundColor={theme.buttonBg}
|
||||
badgeBorderColor={theme.centerChannelBg}
|
||||
badgeColor={theme.buttonColor}
|
||||
badgeStyle={styles.badge}
|
||||
iconColor={changeOpacity(theme.centerChannelColor, 0.56)}
|
||||
hasUnreads={badge.isUnread}
|
||||
|
|
|
|||
Loading…
Reference in a new issue