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

ui: Adjust app bar bg and scaffold bg colors toward new Figma design #687

Merged

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented May 18, 2024

(This replaces #682.)

From discussion:
https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/design.3A.20colors/near/1801938

and the Figma linked there:
https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=2074%3A26325&t=rjuqcQaHMiGBUReF-1

Now, the app-bar bottom border is colored by the new Figma's border-bar, and the main background color is bg-main. The app bar background is unchanged because it already matches bg-top-bar.

And all these color variables have dark-theme variants! (See discussion for what those are.) That'll help when we implement dark theme, #95.

@chrisbobbe chrisbobbe added a-design Visual and UX design integration review Added by maintainers when PR may be ready for integration labels May 18, 2024
@chrisbobbe chrisbobbe requested a review from gnprice May 18, 2024 01:30
@chrisbobbe
Copy link
Collaborator Author

Screenshots:

Before After
842F41EF-8DA5-423A-9986-F3282EB795E5 9F8C4207-A41E-4257-9471-835F87F996B5
7936C278-1006-4701-9C52-B69B74287CE7 9444D3FD-E11B-4B5F-AB28-B522E8C1114C

@chrisbobbe chrisbobbe changed the title ui: Adjust app bar and scaffold-background to align with new Figma design ui: Adjust app bar bg and scaffold bg colors toward new Figma design May 20, 2024
Copy link
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

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

Thanks! Small comment below.

@@ -14,7 +14,10 @@ ThemeData zulipThemeData(BuildContext context) {
scrolledUnderElevation: 0,
backgroundColor: Color(0xfff5f5f5),

shape: Border(bottom: BorderSide(color: Color(0xffcccccc))),
shape: Border(bottom: BorderSide(
color: Color(0x33000000),
Copy link
Member

Choose a reason for hiding this comment

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

Now, the app-bar bottom border is colored by the new Figma's
`border-bar`, and the main background color is `bg-main`. The app
bar background is unchanged because it already matches `bg-top-bar`.

This feels like the sort of information that's helpful to have in the code itself, so as a comment something like:

Suggested change
color: Color(0x33000000),
color: Color(0x33000000), // `border-bar` in Figma

As part of #95 I think you'll be turning these into some sort of named reference, so that this would be foo.borderBarColor for some foo. That'll be another way of putting this information into the code, which is better than a comment. But until then a comment seems helpful.

@chrisbobbe
Copy link
Collaborator Author

Thanks! Revision pushed.

@chrisbobbe chrisbobbe force-pushed the pr-adjust-app-bar-and-scaffold-background-2 branch from eb29d0b to 00c031a Compare May 20, 2024 21:41
…sign

From discussion:
  https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/design.3A.20colors/near/1801938

and the Figma linked there:
  https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=2074%3A26325&t=rjuqcQaHMiGBUReF-1

Now, the app-bar bottom border is colored by the new Figma's
`border-bar`, and the main background color is `bg-main`. The app
bar background is unchanged because it already matches `bg-top-bar`.
I've labeled these values with comments in the code.

And all these color variables have dark-theme variants! (See
discussion for what those are.) That'll help when we implement dark
theme, zulip#95.
@gnprice
Copy link
Member

gnprice commented May 20, 2024

Thanks! Looks good; merging.

@gnprice gnprice force-pushed the pr-adjust-app-bar-and-scaffold-background-2 branch from 00c031a to 10d0fe8 Compare May 20, 2024 22:14
@gnprice gnprice merged commit 10d0fe8 into zulip:main May 20, 2024
1 check passed
@chrisbobbe chrisbobbe deleted the pr-adjust-app-bar-and-scaffold-background-2 branch May 20, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-design Visual and UX design integration review Added by maintainers when PR may be ready for integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants