-
Notifications
You must be signed in to change notification settings - Fork 236
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 |
This change updates the dark theme variables in `DesignVariables` and `MessageListTheme` acc. to their values in Figma. https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=4514-33396&t=bMNXsr5LwkrHz4dp-1 CZO Discussion: https://chat.zulip.org/#narrow/stream/137-feedback/topic/design.20feedback/near/1950672 Fixes: zulip#973
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,
@@ -56,13 +56,13 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> { | |||
MessageListTheme.dark() : | |||
this._( | |||
dateSeparator: Colors.white, |
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.
There is a change to the dateSeparator
from opaque to 0.2 opacity:
https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=3888-6707&m=dev
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.
Okay sure, let's have it to dateSeparator: Colors.white.withValues(alpha: 0.2);
.
But I think it need to be updated in the design then, since it's opacity is 100% in the design file.
labelEdited: const HSLColor.fromAHSL(0.35, 0, 0, 1).toColor(), | ||
labelMenuButton: const Color(0xffffffff).withValues(alpha: 0.85), | ||
mainBackground: const Color(0xff1d1d1d), | ||
textInput: const Color(0xffffffff).withValues(alpha: 0.9), | ||
title: const Color(0xffffffff), |
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.
Looking at this, I see an opportunity to remove colorMessageHeaderIconInteractive
(below this) and use title
with the right opacity at places where colorMessageHeaderIconInteractive
is used. Because it is adjusting something that was not previously a part of the design, let's do that in a separate commit.
dateSeparatorText: const HSLColor.fromAHSL(0.5, 0, 0, 1).toColor(), | ||
dmRecipientHeaderBg: const HSLColor.fromAHSL(1, 0, 0, 0.14).toColor(), | ||
messageTimestamp: const HSLColor.fromAHSL(0.5, 0, 0, 1).toColor(), | ||
recipientHeaderText: const HSLColor.fromAHSL(0.9, 0, 0, 1).toColor(), |
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.
Both this and senderName
are the same as DesignVariables.title
(and title
is the variable used in Figma), so let's use that for consistency with the design, and remove these variables, all in its separate commit.
recipientHeaderText: const HSLColor.fromAHSL(0.8, 0, 0, 1).toColor(), | ||
dateSeparatorText: const HSLColor.fromAHSL(0.5, 0, 0, 1).toColor(), | ||
dmRecipientHeaderBg: const HSLColor.fromAHSL(1, 0, 0, 0.14).toColor(), | ||
messageTimestamp: const HSLColor.fromAHSL(0.5, 0, 0, 1).toColor(), |
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.
In the new design, labelTime
is the variable used for both this and dateSeparatorText. Let's introduce that variable replacing these two that we have, in its own commit.
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.
In the new design,
labelTime
is the variable used for both this and dateSeparatorText. Let's introduce that variable replacing these two that we have, in its own commit.
Are you referring this in above comment to dmRecipientHeaderBg
?
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.
"This" as in the variable on the line I commented on, i.e. messageTimestamp
.
@@ -189,12 +189,12 @@ class DesignVariables extends ThemeExtension<DesignVariables> { | |||
foreground: const Color(0xffffffff), |
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.
We also need to adjust the color of the compose box background (composeBoxBg
), compose box top border (borderBar
).
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.
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