-
Notifications
You must be signed in to change notification settings - Fork 270
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
Tweak dark theme #1213
base: main
Are you sure you want to change the base?
Tweak dark theme #1213
Conversation
Please clean up your commit history and post again to request a review. See here for guidelines. |
525b063
to
3af0d2e
Compare
I’ve cleaned up the commit history by removing unnecessary merge commits into the This is my first time using Apologies for any confusion. Please review the updated PR. |
The |
Thanks! I'll let other folks take a look at this one. |
Hi! Please read through the commit style guide (also previously linked by Alya) linked in our README and fix the commit message: https://github.com/zulip/zulip-flutter?tab=readme-ov-file#submitting-a-pull-request |
076d0de
to
139d4e5
Compare
There was a problem hiding this 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! I noted the differences between this revision and the Figma design after going through lib/widgets/message_list.dart
and some part of lib/widgets/compose_box.dart
for colors used in the widgets.
Some of the comments are just about different colors being used, and others request the addition/removal of variables. It should be fine to include color adjustments all in a single commit, but for adding/removing variables, let's try to have separate commits for the ones added, so it is easier to see which variables they replace. Consider using the NFC tag if a commit is a pure refactor.
I think there are also changes to the autocomplete window, but that should be addressed in #995,
Adjusted the colors for `foreground` in `DesignVariables` and `dateSeparator` in `MessageListTheme` as asked. `foreground`: zulip#1213 (comment) `dateSeparator`: zulip#1213 (comment)
Added `labelTime` variable in `MessageListTheme` that replaces the `dateSeparatorText` and `messageTimestamp` variable according to the latest design. `labelTime`: zulip#1213 (comment)
9c71065
to
139d4e5
Compare
Adjusted the colors for `foreground` in `DesignVariables` and `dateSeparator` in `MessageListTheme` as asked. `foreground`: zulip#1213 (comment) `dateSeparator`: zulip#1213 (comment)
Added `labelTime` variable in `MessageListTheme` that replaces the `dateSeparatorText` and `messageTimestamp` variable according to the latest design. `labelTime`: zulip#1213 (comment)
Adjusted the colors for `foreground` in `DesignVariables` and `dateSeparator` in `MessageListTheme` as asked. `foreground`: zulip#1213 (comment) `dateSeparator`: zulip#1213 (comment)
Added `labelTime` variable in `MessageListTheme` that replaces the `dateSeparatorText` and `messageTimestamp` variable according to the latest design. `labelTime`: zulip#1213 (comment)
56f8fdb
to
2a11a43
Compare
Added `labelTime` variable in `MessageListTheme` that replaces the `dateSeparatorText` and `messageTimestamp` variable according to the latest design. `labelTime`: zulip#1213 (comment)
2a11a43
to
ce64ca5
Compare
Adjusted the colors for `foreground` in `DesignVariables` and `dateSeparator` in `MessageListTheme` as asked. `foreground`: zulip#1213 (comment) `dateSeparator`: zulip#1213 (comment)
Added `labelTime` variable in `MessageListTheme` that replaces the `dateSeparatorText` and `messageTimestamp` variable according to the latest design. `labelTime`: zulip#1213 (comment)
ce64ca5
to
c6aca86
Compare
Removed `colorMessageHeaderIconInteractive` from `DesignVariables` and used `title` in place of it as per the design guidelines. discussion: zulip#1213 (comment)
Removed `senderName` & `recipientHeaderText` from `MessageListTheme` and used `title` in place of it as per the design guidelines. discussion: zulip#1213 (comment)
Adjusted the colors for `foreground` in `DesignVariables` and `dateSeparator` in `MessageListTheme` as asked. `foreground`: zulip#1213 (comment) `dateSeparator`: zulip#1213 (comment)
Added `labelTime` variable in `MessageListTheme` that replaces the `dateSeparatorText` and `messageTimestamp` variable according to the latest design. `labelTime`: zulip#1213 (comment)
f81f39d
to
89c18a6
Compare
Hi @gnprice,
Description: The
Description: The
Description: The
Description: The
Description: The
Hope this comment resolves the matter. |
The new commit messages don't contain any added information — they just repeat the same information three times. Here's the new first commit message:
This still doesn't answer the questions I asked above:
nor the expanded version I offered later:
The other commit messages are all the same way. IOW the new commit messages do the same thing as the original commit message you quoted at #1213 (comment) — which @PIG208 correctly told you was redundant, as I told you at #1213 (comment) I agreed with — but they do it even more so. The one other change is that the Figma link in the first commit message got changed (oh and I guess a second link got added under "discussion"). But the screen pointed to by the new link still doesn't look like it has any examples of the UI that is changed in that commit. |
Let's take the example of this commit itself. I have added this below line in above comment and added screenshots to refer I have attached.
or the follow icon in a topic name. Which shows the actual effect on UI? i.e. Makes the icon lighter And in the commit message I have added this.
Which explains that in Figma designs this And the design frame that it is referring to in the commit link also has a similar kind of drop-down icon beside the topic name. |
I see, that's in your comment above at #1213 (comment) . It's not in your actual commit message in the current revision of the PR, though. That commit is here: That has the right shape to begin to answer the questions, then. But I still don't know what it means — the text "Latest App Version" doesn't seem to appear anywhere on the screen that the commit's (new) Figma link points to:
This sounds relevant (the information "the follow icon") but also isn't currently in the actual commit message.
Great, that's an answer to my other main question. It should therefore also go in the commit message 🙂 (and I don't see it in your above comment #1213 (comment) either). I don't think there's any information you need from @PIG208 which you haven't already gotten in this thread. Please try revising the commits again to answer the questions I've asked about the changes and to address the other feedback you've gotten. If you have other questions, #mobile-dev-help is the best place to ask for help. |
I was referring 'Latest App Version' to the screenshots I have attached in my above comment. Anyways, I will ask in #mobile-dev-help regarding commit messages and update this PR soon. Thank you. |
The `colorMessageHeaderIconInteractive` giving color to icons beside topic names (e.g., the drop-down icon beside the topic *Moving to Zulip* in the below Figma design). This change aligns with the Figma design, where `title` is used in all instances previously assigned to `colorMessageHeaderIconInteractive`. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4021-7569&t=b56sVJ6in9zEY1tU-0 discussion: zulip#1213 (comment), zulip#1213 (comment)
…Time` The `dateSeparatorText` and `messageTimestamp` are replaced with `labelTime` in the `MessageListTheme`. Since, `labelTime` is the variable that is used at `dateSeparatorText` and `messageTimestamp` places in the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=QCuXEn8bYVbf4Fli-0 discussion: zulip#1213 (comment)
The `senderName` and `recipientHeaderText` in `MessageListTheme` are replaced with `title` in `DesignVariables`, since the `title` variable is used at `senderName` and `recipientHeaderText` places in the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The `streamMessageBgDefault` variable in `MessageListTheme` is replaced with `bgMessageRegular` variable. Since, this new `bgMessageRegular` variable is being used at `streamMessageBgDefault` places in the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The `dateSeparator` variable in `MessageListTheme` is replaced with `foreground` variable of `DesignVariables`, since this `foreground` variable is being used in Figma Design for the same purpose. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment) Fixes: zulip#973
89c18a6
to
4279c6e
Compare
The `colorMessageHeaderIconInteractive` giving color to icons beside topic names (e.g., the drop-down icon beside the topic *Moving to Zulip* in the below Figma design) have been replaced to a more brighter versions (more alpha) in both themes, using the `title` variable according to the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4021-7569&t=b56sVJ6in9zEY1tU-0 discussion: zulip#1213 (comment), zulip#1213 (comment)
…Time` The `dateSeparatorText` and `messageTimestamp` are replaced with `labelTime` in the `MessageListTheme`. Since, `labelTime` is the variable that is used at `dateSeparatorText` and `messageTimestamp` places in the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=QCuXEn8bYVbf4Fli-0 discussion: zulip#1213 (comment)
The `senderName` and `recipientHeaderText` in `MessageListTheme` are replaced with `title` in `DesignVariables`, since the `title` variable is used at `senderName` and `recipientHeaderText` places in the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The `streamMessageBgDefault` variable in `MessageListTheme` is replaced with `bgMessageRegular` variable. Since, this new `bgMessageRegular` variable is being used at `streamMessageBgDefault` places in the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The `dateSeparator` variable in `MessageListTheme` is replaced with `foreground` variable of `DesignVariables`, since this `foreground` variable is being used in Figma Design for the same purpose. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment) Fixes: zulip#973
4279c6e
to
aee7e68
Compare
The `colorMessageHeaderIconInteractive` giving color to follow/mute icons beside topic names have been replaced to a lighter and darker versions in dark and light themes respectively, using the `title` variable of `DesignVariables`. This specific UI doesn't appear in the Figma design, but we use `title` because it's used there for the color of a dropdown icon that also appears next to topics. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4021-7569&t=b56sVJ6in9zEY1tU-0 discussion: zulip#1213 (comment), zulip#1213 (comment)
The `dateSeparatorText` and `messageTimestamp` giving color to the date and time stamp on messages and message header have been replaced to a lighter versions both in dark and light themes, using a new `labelTime` variable in `MessageListTheme`, according to the Figma Design. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=QCuXEn8bYVbf4Fli-0 discussion: zulip#1213 (comment)
The `senderName` & `recipientHeaderText` giving colors to name of sender in each message and left icon + text in the Message Header of both Stream messages and DMs, respectively, have been replaced to a darker versions in both dark and light themes, using the `title` variable of `DesignVariables`, according to the Figma Design. Note: left icon in the Message Header of Stream message is added just to give hspace (see line no. 1075 in `lib/widgets/message_list.dart`). This specific UI of left icon and text in message header for the DMs doesn't appear in the Figma design, but we use `title` variable because `recipientHeaderText` was used previously for coloring them. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The `streamMessageBgDefault` giving colors to the background of both Stream messages and DMs UI, has been changed to a darker version for the dark theme, using a new `bgMessageRegular` variable in the `MessageListTheme`, according to the Figma design. It's just a refactor of variable for the light theme. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The variable giving color to divider lines in the Message List UI i.e. `dateSeparator` has been replaced with the `foreground` variable of `DesignVariables`, according to the Figma design. There isn't any change in the values of color from the previous one i.e. `dateSeparator`. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment) Fixes: zulip#973
aee7e68
to
fb30dd0
Compare
The `senderName` & `recipientHeaderText` giving colors to name of sender in each message and left icon + text in the Message Header of both Stream messages and DMs, respectively, have been replaced to a lighter and darker versions in dark and light themes, respectively, using the `title` variable of `DesignVariables`, according to the Figma Design. Note: left icon in the Message Header of Stream message is added just to give hspace (see line no. 1075 in `lib/widgets/message_list.dart`). This specific UI of left icon and text in message header for the DMs doesn't appear in the Figma design, but we use `title` variable because `recipientHeaderText` was used previously for coloring them. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The `streamMessageBgDefault` giving colors to the background of both Stream messages and DMs UI, has been changed to a darker version for the dark theme, using a new `bgMessageRegular` variable in the `MessageListTheme`, according to the Figma design. It's just a refactor of variable for the light theme. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment)
The variable giving color to divider lines in the Message List UI i.e. `dateSeparator` has been replaced with the `foreground` variable of `DesignVariables`, according to the Figma design. There isn't any change in the values of color from the previous one i.e. `dateSeparator`. Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4993-20811&t=vu2wWOBiVb0BB6Vz-0 discussion: zulip#1213 (comment) Fixes: zulip#973
fb30dd0
to
91bd479
Compare
Hi @gnprice,
|
About Changes
This PR updates the color variables in
DesignVariables
andMessageListTheme
for a slightly higher contrast in dark theme according to the values in the figma file.Fixes: #973
Screenshots