Dark mode switcher before login and inside dashboard
We need a dark mode switcher before logging in and inside the dashboard. Here is a good option: https://web.dev/patterns/theming/theme-switch
It can be added here for login:
And here for the dashboard:
Hello! I can work on this.
In this issue, do we also include the functionality of the dark mode switcher?
Hi Peter. Yes, we need that functionality. Let me know if you still would like to work on it.
Got it. I can work on this one.
For the dark mode switch in the Dashboard, do you want to place it on the left of the ellipsis vertical icon?
For the dark mode switch in the Dashboard, do you want to place it on the left of the
ellipsis verticalicon?
Hi @peterpardo ,
Yes I believe that is the idea
@peterpardo it might be a bit tricky so please share you screenshots/videos here as you progress :)
I was researching dark mode in Material UI, and I came across this approach: https://mui.com/material-ui/customization/dark-mode/#dark-mode-only
Then while navigating through the source code, I saw this comment regarding changing how we implement themes in the app.
Do we want to include these changes in this issue as well?
If it is directly related to this issue, you can include it. If you can separate them (e.g implement #1317 and then move on to the one commented), that is easier to review and merge I assume.
Got it. I think for this issue, we can add the dark mode switcher without the functionality for now. Then create another PR for the functionality which will include the TODO in the comment. What do you think?
Got it. I think for this issue, we can add the dark mode switcher without the functionality for now. Then create another PR for the functionality which will include the TODO in the comment. What do you think?
Let's go then!
Hello! Here is the progress for the dark mode switch:
In the Login page:
https://github.com/user-attachments/assets/5550d827-3c97-49eb-ab35-9f6b102e365f
In the Sidebar:
https://github.com/user-attachments/assets/b383711e-c3c3-484d-8d43-13da7b686ac1
What do you think?
Hello! Here is the progress for the dark mode switch:
In the
Loginpage: https://github.com/user-attachments/assets/5550d827-3c97-49eb-ab35-9f6b102e365fIn the
Sidebar: https://github.com/user-attachments/assets/b383711e-c3c3-484d-8d43-13da7b686ac1What do you think?
I think they look great.
After this PR we need to remove it from the main settings area (where the dark/light switcher currently is).
Got it. I'll proceed to publish the PR. Thank you!
I already included the dark mode functionality in the PR since there are only few changes that I made to make it work.
I already included the dark mode functionality in the PR since there are only few changes that I made to make it work.
Meaning the PR contains full UI + functionality right?
I already included the dark mode functionality in the PR since there are only few changes that I made to make it work.
Meaning the PR contains full UI + functionality right?
Yep!
Great, thanks. Let's add it to our next minor release then, if the review process is positive.