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

add switch account icon #1180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add switch account icon #1180

wants to merge 1 commit into from

Conversation

Pudv95
Copy link

@Pudv95 Pudv95 commented Dec 19, 2024

This PR introduces a new switch_account icon to the main menu of the application, which was previously empty. The icon improves the menu's usability by providing a clear visual indicator for account switching.

Related Issue #1178

The icon used in the menu is taken from Ant Design Icon Library

Screenshots
simulator_screenshot_398D682E-C5FB-40D5-8152-F02B38A46294
Iphone16 LightMode
IMG_2B7289C6A2FE-1
iPad DarkMode

@PIG208
Copy link
Member

PIG208 commented Dec 19, 2024

Hi! For design changes like this, let's start a discussion by sending your proposal in the #mobile channel and see if everyone agrees with the choice of icon.

Also, please take a look at https://github.com/zulip/zulip-flutter/?tab=readme-ov-file#submitting-a-pull-request. The commit message needs to be fixed for this to be mergeable. It would also be helpful for you to include the source of the icon in your commit.

@Pudv95
Copy link
Author

Pudv95 commented Dec 20, 2024

@PIG208 can you check it out
I have also posted the icon design in design channel and mobile channel

@Pudv95
Copy link
Author

Pudv95 commented Dec 20, 2024

@chrisbobbe Please review this so I can proceed.

Copy link
Member

@PIG208 PIG208 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! We should also update the commit message so that it mentions where the icon comes from. Please also include a line, "Fixes: #1178", so that the commit closes the issue.

See "Zulip's commit style guide" linked here on how to do that: https://github.com/zulip/zulip-flutter?tab=readme-ov-file#submitting-a-pull-request

@@ -1004,10 +1004,10 @@ packages:
dependency: transitive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change to this file doesn't look intentional. I think we don't want to update this as it is irrelevant to this commit.


@override
Widget buildLeading(BuildContext context) => const SizedBox.shrink();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also remove this line, so we have 1 line between the two methods.

@@ -540,10 +540,8 @@ class _SwitchAccountButton extends _MenuButton {

@override
// TODO(design): choose an icon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have chosen the icon, this comment can be removed.

@PIG208 PIG208 added the maintainer review PR ready for review by Zulip maintainers label Dec 23, 2024
@PIG208 PIG208 self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants