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

Feature request: Change to dark theme/night mode automatically based on user preference #1901

Open
squeak9 opened this issue Sep 15, 2024 · 1 comment
Labels

Comments

@squeak9
Copy link

squeak9 commented Sep 15, 2024

Is your feature request related to a problem? Please describe.
I just realized today that cyberchef has dark theme support , I'm kinda used to apps just selecting the theme based on your device and/or browser theme preferences so I never realized that there's a theme setting in the options.

A lot of people are probably like me, they use this tool in the dark and don't visit the options and they get this bright website. Spare their eyes and implement this.

Describe the solution you'd like
Implement this:
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
It's supported by all the browsers.
https://caniuse.com/prefers-color-scheme

Describe alternatives you've considered
There's also this but its experimental and not supported by all browsers:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Color-Scheme
https://caniuse.com/mdn-http_headers_sec-ch-prefers-color-scheme

Additional context
None

@aaryansr26
Copy link

I can do a little bit of research and try to implement this feature in my fork. @squeak9

vs4vijay added a commit to vs4vijay/CyberChef that referenced this issue Oct 6, 2024
Related to gchq#1901

Implemented automatic dark theme change based on user preference using the `prefers-color-scheme` media query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants