-
Notifications
You must be signed in to change notification settings - Fork 61
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
Make chart background color darker (dark theme) #382
Make chart background color darker (dark theme) #382
Conversation
1d54b4f
to
b64b53d
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.
Hi thefinaljob,
thanks for the patch!
The commit message is kind of unclear. this changes the background color in light and dark theme
Light theme passes from https://duckduckgo.com/?q=color+picker+%23f4f7fb&ia=answer to https://duckduckgo.com/?q=color+picker+%23333f52&ia=answer
I find this not pretty. Maybe just change the dark one?
Here's a quick helper for commit messages. https://www.freecodecamp.org/news/writing-good-commit-messages-a-practical-guide/ I am not always the best citizen on that front though. Could look like thisCapitalized, short (50 chars or less) summary More detailed explanatory text, if necessary. Wrap it to about 72 Write your commit message in the imperative: "Fix bug" and not "Fixed bug" Further paragraphs come after blank lines.
If you use an issue tracker, add a reference(s) to them at the bottom, Resolves: #123 |
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.
Requested changes 🌿
- Include the issue that this contributes towards fixing (Make chart and filter field backgrounds a darker colour in dark theme #282) in the commit message and PR description
- For light theme: Change colour back to the the original theme background. The contrast was already good and low in the light theme before this proposed patch.
- For dark theme: Change colour to a neutral grey that is slightly lighter than the tab background (ex. #232323) (neutral grey: same values for red, green and blue). The tab background and the rest of the greys in the UI are often neutral. The chart background should be a shade of the tab background colour (same hue/saturation just different brightness)
If you want more details, you can check out the issue description #282. I just made some additions to clarify the requirements/motivation for the change.
The main goal of these changes is to decrease the contrast between the tab background and chart background. If you convert the colours to HSB you can see that the colour proposed in this PR has a higher difference in brightness with the tab background than the original grey (i.e. the colour proposed here increases the contrast rather than decreasing it).
@ebugden Could you illustrate that with light theme too? my main issue is that it looks bad with light theme. |
@MatthewKhouzam I agree the current changes look really bad in light theme. I just adjusted my change requests to make this more clear. I'm aiming for something like this for light and dark themes: |
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.
Requested changes:
- Update chartBackgroundColor in updateBackgroundTheme( ) as well. Right now when you switch to light theme and back to dark, it changes back to the light grey (see video below).
- Include the issue that this contributes towards fixing (Make chart and filter field backgrounds a darker colour in dark theme #282) in the commit message and PR description. This PR doesn't make the filter field darker so the issue shouldn't be closed when this PR is merged.
- Write commit title in imperative: "Make chart background color darker"
- Add signoff to commit
- Apply corrections by amending and force pushing the original commit instead of creating a new one. There should be just one commit in the PR. (Let me know if you want some help doing this!)
Thanks for updating the background colour! 🌼 I find this darker background to be less distracting.
Current background | 🌈 PR Proposed background |
---|---|
Currently the chart background was only updated in the constructor not in updateBackgroundTheme( ). So when you switch to light theme and back to dark theme the colour is still the light grey (see 0:37 in the video):
TraceCompassTutorialTraces.Theia-Trace.Example.Application.-.Google.Chrome.2021-07-21.15-25-12.mp4
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.
please squash the two patches... we can't have both merged. ;)
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
613ea53
to
b64b53d
Compare
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
7a2581f
to
b64b53d
Compare
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
36105f9
to
bc3cf84
Compare
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
b08a938
to
7a6667c
Compare
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
Hi... er... I think you passed from 2 patches to 0 patches. How is this PR empty. I'm confused. |
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
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.
WHooooooooooooo!
…loud#382 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
e538c72
to
b6b7d46
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.
Wasn't there a light theme change too? I guess this is OK.
No the light theme was good already. The goal of this change was to have lower contrast between the tab background and chart background in the dark theme (similar to the low contrast already in the light theme) (See #282). The darker backgrounds in some of the light theme screenshots are because of an update bug that I think was fixed recently by @muddana-satish #407. Here's what these changes look like in dark and light theme: TraceCompassTutorialTraces.Theia-Trace.Example.Application.-.Google.Chrome.2021-07-23.11-57-06.mp4 |
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.
- Reference the issue Make chart and filter field backgrounds a darker colour in dark theme #282 in the commit message (instead of the PR Make chart background color darker (dark theme) #382) 🍰
One last change!
…loud#282 Signed-off-by: Nikolai Peram <nikolai_peram@outlook.com>
b6b7d46
to
9bb8835
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.
Looks good to me! 🌵 @thefinaljob We can merge after approval from a second committer. I just sent the additional review request so it can take a little while.
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.
Looks good to me. Thanks!
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.
Looks good to me, thank you.
Changed the code to make the background color darker for the chart. It is now a shade of dark blue.
Contributes towards fixing #282