diff --git a/src/main/mesh.js b/src/main/mesh.js index 4be11664..ad13568e 100644 --- a/src/main/mesh.js +++ b/src/main/mesh.js @@ -812,6 +812,11 @@ async function cmms_load_from_url(config) { boot_done(); handles.setEnabled(api.prefs.map.space.bounds ?? false); broker.publish("app_ready"); + // The normal boot path applies dark/light mode inside restore_space(), + // which this CMMS-scoped launch deliberately skips - so do it here. + // config.dark comes from the CMMS host's theme_is_dark() (cmms_dark + // query param); default dark for a non-CMMS/direct launch. + set_darkmode(config.dark ?? true); } }