-
Notifications
You must be signed in to change notification settings - Fork 531
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
Theme Toggling Feature #2972
Theme Toggling Feature #2972
Conversation
pontoon/base/migrations/0048_rename_themes_userprofile_theme.py
Outdated
Show resolved
Hide resolved
Nice work! Please note that the spec has now been updated with the theme selector mockups: I'll share the corresponding HTML and CSS with you. We should also change the tooltips as noted in the spec. |
Excellent work with the updates! Added a few more minor requests. |
Thanks for another set of updates! I had a closer look at how the toggle logic actually works. Here's my list of proposals:
|
) { | ||
return 'dark'; | ||
} else { | ||
return 'light'; |
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 should default to dark, not light. So if the user sets "System" in Pontoon and "Auto" on macOS, she should get the dark theme. Right now she gets the light theme.
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.
Just a couple of comments left!
What is the status of applying the theme in the translate view?
Please also look into the failing tests.
To fix that, we should use And also get rid of |
Nice work with the updates!
|
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.
Great work - the core functionality is there!
Pytest is failing due to a conflicting migration. We have recently landed an existing migration 0047, so you'll need to rename yours to 0048 and update the dependency migration: pontoon/base/static/css/light-theme.css.
We also need to get rid of the eslint warnings.
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.
Excellent job!
Now we need to fix the tests and possibly rebase and we're ready to merge.
As discussed on Slack, we should probably revert the last commit and remove "theme" from the form. As for the rebase, I suggest you create a fresh branch out of the current |
Works like a charm! Woohoo! 🥳 Continuing in #2996. |
Implements theme toggle in the /settings page. Adds the light theme CSS file with the same values as in the dark theme CSS file. Theme toggle in the Profile Menu and the actual light theme CSS file will be submitted in a followup. --------- Co-authored-by: Ayanaa Rahman <ayanaa.rahman@mail.utoronto.ca>
This PR addresses the last step in the process of implementing theme support for Pontoon. It introduces the capability for users to seamlessly switch between the platform's existing dark theme and the newly added light theme (Issue #2936 ).
Changes:
Additional Notes:
light-theme.css
file, which will house the variables and styles specific to the light theme.