Answer to your question:
No, i dont have a solution for that....... but some questions about this
QuoteWhen I change backend theme to NewBackendTheme, and MyModule is in use,
it still loads css from MyModule/themes/default/css/default.css instead MyModule/themes/NewBackendTheme/css/default.css
/themes/default is a path inside of the module folder and has nothing to do with the used BackendTheme.
default is here to see as a fallback and the name "default" has nothing to do with the name of the backend theme.
but let me write a little more about this...
the idea behind this new structure in the modules: you've a standard folder (called = "default") for every parts of the module design, means: the templates, the css, js, own languages, own backend_body or own jquery etc.
the name ="default" means here, it is in connection with the standard theme or template, defined in the WB-Settings and named as
default_theme or
default_template in the database and in the core files.
if you set in the page settings from a single page with this module "MyModule" a different frontend template, not the as standard (or default) defined template, the SimpleCommandDispatcher (under /modules) make's a copy from the folder /MyModule/default and name it like the used frontend-template or as example, if you've a frontend-template with the name ="spring", the dispatcher build a copy from the folder /modules/MyModule/templates/default and call it /modules/MyModule/templates/spring. This give the possibility, to build a special design for this frontend-template and also the possibility, to work in different pages (with this module as section) with different frontend templates in these sections.
I'm not sure, but i mean, we've the same procedure also for the backend in the past, but it change in the last wb-versions, because, it was not needed, if you use only one backend theme. i'll look at this in the next days
P.S.: somebody ask me about the w3.css in the folders of my modules, it's not needed, because, WB use the w3.css everywhere in the backend. i use "my w3.css" in the modules, dont know, what happend, if we have a new BackendTheme....