Programmatic way to detect theme (light/dark mode)?
I reckon this might not be possible, since theme appears to be a frontend property, but is there a way to detect whether the app is displayed in light/dark mode from the python side?
Solution:Jump to solution
This has been added in https://github.com/marimo-team/marimo/pull/2126
GitHub
feat: marimo.app_meta.theme and custom themers to auto switch plott...
📝 Summary
This pull request introduces a new mechanism for managing and applying themes across different plotting libraries used within Marimo notebooks.
Changes Made
App Metadata: A new AppMeta ...
3 Replies
Not yet. There is an open issue out for this
https://github.com/marimo-team/marimo/issues/1624
GitHub
marimo.app_meta.theme · Issue #1624 · marimo-team/marimo
Description Add a marimo.settings, to control or only read the settings if controlling setting in cell will interrupt the notebook. Suggested solution Why this feature can be useful: We can use the...
Oh oops, apologies for not searching the issues first— discord is making me lazy 😬
Next couple of weeks are rather hectic, but I’ll see if I can find time and take this issue!
Solution
This has been added in https://github.com/marimo-team/marimo/pull/2126
GitHub
feat: marimo.app_meta.theme and custom themers to auto switch plott...
📝 Summary
This pull request introduces a new mechanism for managing and applying themes across different plotting libraries used within Marimo notebooks.
Changes Made
App Metadata: A new AppMeta ...