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

Need the configuration to disable dark mode #418

Open
anantanandgupta opened this issue Jun 19, 2021 · 2 comments
Open

Need the configuration to disable dark mode #418

anantanandgupta opened this issue Jun 19, 2021 · 2 comments

Comments

@anantanandgupta
Copy link

This UI is defaulting the User Interface to dark mode if the user is a first time user. I need know if there is any configuration in cyclos or during the build time where we can change the default theme to light and disable the setting for end user to ever change it again. As of now the settings page seems to be hardcoded to have the toggle. In the seetings page. Only option i think i have is to remove the menu item from the code altogether so that user is not able access the theme toggle. But for defailt theme to dark ... Somehow i am not able to understand from where it is coming.

@luisfpg
Copy link
Contributor

luisfpg commented Jun 21, 2021

On the first user access to the frontend, we get from the system settings.
Browsers implement this using the prefers-color-scheme CSS property.
The corresponding theme (light or dark) It is then persisted in the local storage, and restored from there on next page views.
If you're experiencing dark by default is because the system (Windows, Mac, Linux) is set to a dark theme. We assume it is the user preference to use a dark theme.
We have never considered disabling the option, because this is an overall trend in software systems to support a dark mode.

@anantanandgupta
Copy link
Author

I understand this that this is default behavior and it is expected from the system. But in terms of highly customizable system like cyclos, not only in terms of features and functionality but its capabilities of controlling themes and style. It is so comfortable and advance that a tiny non controllable feature hurts ... Like a spot on white shirt

So again

It can be a simple as a angular environment.js entry which disables the reading of that automatic value at runtime and remove the option for user to switch theme from dashboard and settings menu. However you can chose how you implement this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants