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

Backport PR #575: Reflect theme changes without a refresh #599

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Jan 23, 2024

Backports #575

* Reflect theme changes without a refresh

By leveraging `IThemeManager.themeChanged`, we can listen on theme change signals
and rebuild the theme object in response. This allows CSS variable changes to reflect
in the MUI theme without having to refresh the page.

* update yarn.lock

* pass themeManager as a prop instead of using top-level scope

* remove theme hack added in jupyterlab#192

---------

Co-authored-by: gchow <garson.chow@factset.com>
Co-authored-by: David L. Qiu <david@qiu.dev>
(cherry picked from commit ca03e2c)
@dlqqq dlqqq added the enhancement New feature or request label Jan 23, 2024
@dlqqq dlqqq enabled auto-merge (squash) January 23, 2024 23:28
@dlqqq dlqqq merged commit f83b576 into jupyterlab:1.x Jan 23, 2024
9 checks passed
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