You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can set the colorscheme by adding settingsmodel.colorscheme("Scheme name") to the web page script, e.g. to be called when the web page loads.
To get the default colorscheme name from default_setings.cfg, you need (in the web page script) to download it from the server and parse it, or let the server to extract the setting value:
In the default_settings.cfg, add the setting, e.g. colorscheme = Clustal
Read the setting in server: in wasabi_server.py add colorscheme = getconf('colorscheme')
Make it accessbile by request: in wasabi_server.py, add to post_checkserver function: status["colorscheme"] = colorscheme
script.js calls the "checkserver" request on page load and reads data from the server in function startup(). Add there (after line 5410): if(data.colorscheme) settingsmodel.colorscheme(data.colorscheme);
Note: default_settings.cfg is only read when the Wasabi server is run for the first time. After that, the copy Wasabi data/server_settings.cfg is used instead, so edit that one. Also, restart wasabi_server.py after editing the configfile.
I should add a more general way of setting defaults for javascript-side settings from the server-side config file. Meanwhile, the above workaround hopefully helps.
Hi
Is there a way to change the default colour scheme without changing scheme order in the javascript/script.js file?
In the default_settings.cfg file for example.
The text was updated successfully, but these errors were encountered: