Skip to content

Conversation

@AnastasiaSliusar
Copy link
Contributor

@AnastasiaSliusar AnastasiaSliusar commented Dec 8, 2025

This PR adds ThemeManager. The task is #1

The result:
Screencast from 2025-12-09 13-54-54.webm

@AntoinePrv AntoinePrv linked an issue Dec 8, 2025 that may be closed by this pull request
@AntoinePrv AntoinePrv changed the title add ThemeManager feat(client): Add ThemeManager for grid Dec 8, 2025
@AnastasiaSliusar AnastasiaSliusar marked this pull request as ready for review December 9, 2025 12:58
Copy link
Member

@AntoinePrv AntoinePrv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looks good, just have one question below.

await widget.content.ready;
widget.content.style = style;
widget.content.rendererConfig = rendererConfig;
updateThemes();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it valid to call updateThemes here even though it is defined after?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If your question is about whether it is valid of calling updateThemes function here, then the answer is yes. This method does not run at the moment the widgetCreated callback is registered. When this callback runs, updateThemes has been defined in memory.

@AntoinePrv AntoinePrv merged commit d11cbe6 into QuantStack:main Dec 9, 2025
7 checks passed
@AntoinePrv
Copy link
Member

Good job, thanks!

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.

Fix updating themes

2 participants