-
Notifications
You must be signed in to change notification settings - Fork 32
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
Force Dark Theme #615
Comments
Could you please take a screenshot of this page in your browser? https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme The area of interest is this one: Since theming relies on |
Ahh, I didn't realise I had to set both OS (Windows 11) and Browser (Chrome) to Dark Mode. As soon as I changed the setting in Windows the theme switched to the dark one. It would still be nice to have forcing of light or dark as a configurable option. I thought I could tweak it myself by using |
That said, it's quite challenging to implement. The "force" environment/cli flag would need to be parsed on the backend, passed to an HTTP endpoint, read by the frontend after the HTTP call, and only then applied to the styling options. It's a rather complicated process. Especially since operating systems and browsers already have their own mechanisms for enforcing dark themes. Forcing a theme purely on the frontend is possible, but it can cause issues with elements like SVG images (which often have their own theming), icons, and similar components, leading to a less polished appearance. In any case, I'll consider adding a theme toggler to the UI, but it will be a low-priority task. Does that sound okay? |
Of course, this is purely a cosmetic request with little to no benefit - it should go to the bottom of the pile. Thanks :) |
Is there a variable or something that forces the dark theme irrespective of browser/platform settings?
I just noticed the Change Log states:
My Chrome is set to Dark but WebHook Tester v2.0.1 is Light themed:
The text was updated successfully, but these errors were encountered: