Currently, the files nano-theme-* are only required based on command-line flags (e.g., specifying -dark, for instance, requiresnano-theme-dark). So one of the two nano-theme-* and its functions will remain unloaded. Now, when a user invokes nano-toggle-theme it will complain not knowing about the alternative nano-theme-set-* (i.e., if nano-theme-dark was loaded, then toggling does not know of nano-theme-set-light function.). This fix loads both themes (one commit changes the theme files to simply supply the functions, but not call them), but activates the appropriate theme based on command-line flags.
Currently, the files
nano-theme-*
are only required based on command-line flags (e.g., specifying-dark
, for instance, requiresnano-theme-dark
). So one of the twonano-theme-*
and its functions will remain unloaded. Now, when a user invokesnano-toggle-theme
it will complain not knowing about the alternativenano-theme-set-*
(i.e., ifnano-theme-dark
was loaded, then toggling does not know ofnano-theme-set-light
function.). This fix loads both themes (one commit changes the theme files to simply supply the functions, but not call them), but activates the appropriate theme based on command-line flags.