Skip to content

Commit edc9835

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 0ad0e45 commit edc9835

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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 = props => makeIcon(FontAwesome, 'align-left');

src/main/HomeScreen.js

+6-2
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: {
@@ -50,7 +50,11 @@ export default function HomeScreen(props: Props): Node {
5050
dispatch(doNarrow(HOME_NARROW));
5151
}}
5252
>
53-
<Icon size={24} style={{ textAlign: 'center ' }} color={BRAND_COLOR} name="globe" />
53+
<IconAllMessages
54+
size={24}
55+
style={{ textAlign: 'center ', transform: [{ scale: -1 }] }}
56+
color={BRAND_COLOR}
57+
/>
5458
</TopTabButtonGeneral>
5559
<TopTabButton
5660
name="star"

0 commit comments

Comments
 (0)