Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto apply theme to mo.ui.data_explorer based on the notebook display theme #2233

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Sep 5, 2024

Fixes #2228

Update ConnectedDataExplorerComponent to apply dark theme based on the current display theme.

  • Import useTheme hook:

    • Import useTheme from frontend/src/theme/useTheme.ts.
  • Apply dark theme:

    • Use the useTheme hook to get the current theme.
    • Apply the dark theme to the VegaLite component if the current theme is dark.

For more details, open the Copilot Workspace session.

… theme

Fixes #2228

Update `ConnectedDataExplorerComponent` to apply dark theme based on the current display theme.

* **Import `useTheme` hook:**
  - Import `useTheme` from `frontend/src/theme/useTheme.ts`.

* **Apply dark theme:**
  - Use the `useTheme` hook to get the current theme.
  - Apply the dark theme to the `VegaLite` component if the current theme is dark.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/marimo-team/marimo/issues/2228?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 2:09pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 2:09pm

@mscolnick
Copy link
Contributor Author

/marimo create-test-release

Copy link

github-actions bot commented Sep 5, 2024

🚀 Test release published. You may be able to view the changes at https://marimo.app?v=0.8.11-dev91884

@mscolnick mscolnick merged commit 0834aa9 into main Sep 5, 2024
30 of 31 checks passed
@mscolnick mscolnick deleted the mscolnick/fix-theme branch September 5, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auto apply_theme to mo.ui.data_explorer based on the notebook display theme
2 participants