jupyterlab / jupyterlab-desktop

JupyterLab desktop application, based on Electron.
BSD 3-Clause "New" or "Revised" License
3.76k stars 367 forks source link

sync jupyterlab theme with OS client settings #734

Open xgdgsc opened 12 months ago

xgdgsc commented 12 months ago

Can it sync jupyterlab light/dark theme with OS? When using browser with dark reader extension. It can sync with OS.

JasonWeill commented 11 months ago

@mbektas noted that there's a "Sync JupyterLab theme" option in prefs: https://github.com/jupyterlab/jupyterlab-desktop/issues/543#issuecomment-1355973951

Which theme option do you have selected in the Settings window? Which OS and which JupyterLab Desktop version are you running?

xgdgsc commented 11 months ago

Yes I have that enabled and not working on Windows with auto dark mode installed. I use latest release jupyterlab-desktop with a remote ssh forwarded session. Does the option only work with local sessions?

mbektas commented 11 months ago

@xgdgsc yes, the sync theme is designed to work for locally launched sessions or remote sessions that were launched with --expose-app-in-browser.

xgdgsc commented 11 months ago

Thanks for the tip for --expose-app-in-browser . Would it be better if adding that tip to the settings UI?

xgdgsc commented 11 months ago

It seems only work when reopen the session. Can it be made work with working inside the session , when system switches, do the switch? Just like other apps like vscode/edge can do.

mbektas commented 11 months ago

@xgdgsc --expose-app-in-browser is mainly intended for testing launches and used by desktop app as well. It is not suggested for general use cases. Some setting changes do not really require restarts and can be applied in place, but we didn't get chance to optimize. Something to improve in future.