-
Notifications
You must be signed in to change notification settings - Fork 4
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
Dark mode optimization. #59
Conversation
plaskier
commented
May 17, 2022
- Auto dark mode based on system preference.
- Manual toggle switch at the bottom of the page.
- Instant and dynamic responding.
- Auto dark mode based on system preference. - Manual toggle switch at the bottom of the page. - Instant and dynamic responding.
Font (and color) issues in each post may still exist, in mobile/desktop views.
|
Trying to fix font color and font family issues by rewriting CSS files. CSS files are being rewritten by using variables instead of specific values in each CSS files. The default font color and font families will be kept the same. |
Major updates on dark theme
|
Dark theme button seems broken. Further debugging is needed. The dark theme still cannot be implemented. |
(For most cases it works.)
Issue on the logic of switching Light-Dark Theme is foundBy inspecting element, the problem occurs when the When both parameter exists, for example, if you are in system light mode, then you are most likely to have the web page set to dark mode. Therefore if now you change the system theme preference and set to dark mode, the web page would turn to an annoying light mode. The solution is under development. |
Make sense to extend design perspective to qualitative perspective. |
An attempt to import three condition of the toggle makes sense, which is auto, dark, and light. In dark or light condition, user preference would override system preference. But if it is set to auto, then the system preference takes over. In this way the logic is much clearer. The main script has been optimized. Now the issues is to decide where to put the button. |
- Toggle option: dark, light, auto. - Reformat some files. - Fix the logic conflict of theme switch.
I believe now the dark mode could be implemented for using. Now the decision logic for switching themes is like this:
|
@plaskier Great job! You have the access rights to manage this repo's issues and PR. Once this PR is (squash) merged, I can create a release then. |
v16.6 |