Skip to content

Commit f33b6b3

Browse files
Leslie NgoLeslie Ngo
Leslie Ngo
authored and
Leslie Ngo
committed
homescreen_icon: Swap icon 'globe' with 'list' for web UI parity.
Web Zulip's all-messages icon is an inverted list icon, so we're swapping mobile's all-messages icon to match. Fixes: zulip#5303
1 parent 913e59a commit f33b6b3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/common/Icons.js

+1
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ export const IconGroup: SpecificIconType = makeIcon(FontAwesome, 'group');
108108
export const IconPlus: SpecificIconType = makeIcon(Feather, 'plus');
109109
// eslint-disable-next-line react/function-component-definition
110110
export const IconWebPublic: SpecificIconType = props => <ZulipIcon name="globe" {...props} />;
111+
export const IconAllMessages: SpecificIconType = makeIcon(Feather, 'align-left');

src/main/HomeScreen.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import LoadingBanner from '../common/LoadingBanner';
1818
import ServerCompatBanner from '../common/ServerCompatBanner';
1919
import ServerPushSetupBanner from '../common/ServerPushSetupBanner';
2020
import { OfflineNoticePlaceholder } from '../boot/OfflineNoticeProvider';
21-
import { Icon } from '../common/Icons';
21+
import { IconAllMessages } from '../common/Icons';
2222

2323
const styles = createStyleSheet({
2424
wrapper: {
@@ -45,12 +45,15 @@ export default function HomeScreen(props: Props): Node {
4545
<OfflineNoticePlaceholder />
4646
<View style={styles.iconList}>
4747
<TopTabButtonGeneral
48-
name="globe"
4948
onPress={() => {
5049
dispatch(doNarrow(HOME_NARROW));
5150
}}
5251
>
53-
<Icon size={24} style={{ textAlign: 'center ' }} color={BRAND_COLOR} name="globe" />
52+
<IconAllMessages
53+
size={24}
54+
style={{ textAlign: 'center', transform: [{ scaleY: -1 }] }}
55+
color={BRAND_COLOR}
56+
/>
5457
</TopTabButtonGeneral>
5558
<TopTabButton
5659
name="star"

0 commit comments

Comments
 (0)