Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mainScreenTabs: Change All-Messages icon from globe to list. #5458

Merged
merged 0 commits into from
Aug 19, 2022
Merged

mainScreenTabs: Change All-Messages icon from globe to list. #5458

merged 0 commits into from
Aug 19, 2022

Conversation

dootMaster
Copy link

To match the mobile All-Messages icon with the icon found in browser.

Browser:
Screen Shot 2022-08-04 at 4 55 06 PM

Previous:
Screen Shot 2022-07-30 at 5 41 14 PM

Matched:
Screen Shot 2022-07-30 at 5 41 49 PM

Fixes: #5303

@dootMaster
Copy link
Author

@chrisbobbe

I've revised my PR according to some advice you left on another PR. Let me know if it checks. Thanks.

@dootMaster
Copy link
Author

@alya @chrisbobbe

PR ready for review.

@chrisbobbe
Copy link
Contributor

Thanks, @dootMaster!

One nit: the web app uses Font Awesome for this icon, and this PR would use Feather.

The difference is pretty small; the order of short and long lines is just reversed:

image

But we might as well use exactly the same icon while we're making this change.

It's a little tricky with the current code, but here's a not-too-complicated way that should work:

  1. An [nfc] commit that inlines TopTabButton in just this callsite, so replacing
      <TopTabButton
        name="globe"
        onPress={() => {
          dispatch(doNarrow(HOME_NARROW));
        }}
      />

with

      <TopTabButtonGeneral
        onPress={() => {
          dispatch(doNarrow(HOME_NARROW));
        }}
      >
        <Icon size={24} style={{ textAlign: 'center' }} color={BRAND_COLOR} name="globe" />
      </TopTabButtonGeneral>

, with Icon imported like so:

import { Icon } from '../common/Icons';
  1. A commit that adds something like
export const IconAllMessages: SpecificIconType = makeIcon(FontAwesome, 'align-left');

to src/common/Icons.js, and replaces this button's <Icon … name="globe" /> with <IconAllMessages … />.

@dootMaster
Copy link
Author

dootMaster commented Aug 17, 2022

@chrisbobbe

HAH! I actually considered this in a previous commit but then second guessed myself because the commit message seemed too long. I'll sort this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use "list" icon for all-messages, matching web's new icon there
2 participants