Configure starting theme
Hello, I'm interested in configuring my custom Navigator instance to start with a light theme, as it works better with my default layers and general website theme.
Currently on develop, it looks like the user's system settings are used to start, though it can be user-controlled via dropdown and cookie.
Would it make sense to have a config.json setting for this?
As a temporary workaround, have made the following edits to force a light theme: https://github.com/mitre-atlas/atlas-navigator/commit/c931a7ed3ce875a11a4d4b2fd0cb0af491c57ffe
May be semi-related to #403
Hi @lilyjw,
Thanks for reaching out! I can definitely see why it might be preferable to have a configuration setting for the theme. You're correct the user's system settings are used by default and it could be useful to have the ability to override this logic.
My current thoughts are to add a theme field to the config file with the following valid options: light, dark, or system, using system as the default value. This would provide an easy way to override the theme without disrupting any existing settings. Implementation wise, this would be fairly straightforward and have little to no impact on the application. If you have any other thoughts, I'm open to suggestions!