Skip to content

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.

@github-actions
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