Skip to content
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 for caMicroscope pages #1075

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

chandrikarj
Copy link
Contributor

@chandrikarj chandrikarj commented Jan 18, 2025

Dark mode for caMicroscope

Summary

This PR introduces a dark mode feature for the camicroscope interface. It allows users to toggle between light and dark themes for improved usability, particularly in low-light environments. The changes include:
-Adding a theme toggle button in the UI which allows switching between light and dark theme.
-Dark theme for Home, Slides, Info, Workbench and Signup pages.

Dark Mode button UI:
Screenshot 2025-01-16 at 10 54 12 PM

Some Before/After Screenshots:
Before:
Screenshot 2025-01-18 at 1 21 13 PM
Screenshot 2025-01-18 at 1 21 40 PM
<img width="1391" alt="Screenshot 2025-01-18 at 1 22 52 PM" src="https://github.com/user-attachments/assets/90e13380-d6de-4
Screenshot 2025-01-18 at 1 22 30 PM
00a-8ba9-ae5567bd543a" />

After:
Screenshot 2025-01-18 at 1 39 43 PM
Screenshot 2025-01-18 at 1 21 52 PM
Screenshot 2025-01-18 at 1 23 00 PM
Screenshot 2025-01-18 at 1 22 40 PM

Video of the implementation:

Screen.Recording.2025-01-18.at.1.31.57.PM.mov

Motivation

The dark mode feature is designed to:

Address user requests for improved accessibility and customization.
Reduce eye strain for users working in low-light environments.
This feature aligns with best practices for accessibility and user-centric design.

Testing

Verified that the theme toggle button works as expected on various browsers (Chrome, Firefox, Safari).
Tested dark mode compatibility across key application pages.

Additional Context:
The next step would be to preserve the mode selected by the user on changing pages or refreshing.

Copy link

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant