Skip to content

Conversation

@ianthomas23
Copy link
Member

Follow up to #62 to pass on optional isDarkMode boolean to cockle's themeChanged. Support for this was added in jupyterlite/cockle#232 and released in cockle 1.0.0.

It can be confirmed that this is working in the browser's console. A terminal theme change to something other than inherit does not have this boolean so cockle has to check if the terminal background color is dark and it reports this in the console via:

Cockle theme change 5 ms

When the terminal theme is inherit and the JupyterLite theme is changed to one of the default themes such as JupyterLab Dark or JupyterLab Light then it knows if it is dark mode and hence no such line is written to the console.

@ianthomas23 ianthomas23 added the enhancement New feature or request label Oct 9, 2025
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

@ianthomas23 ianthomas23 merged commit c0b4c0c into main Oct 9, 2025
13 checks passed
@ianthomas23 ianthomas23 deleted the theme-change-boolean branch October 9, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants