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
feat: added light theme #23
feat: added light theme #23
Conversation
baiwusanyu-c
commented
Jun 26, 2023
If |
@baiwusanyu-c 不好意思,我只是在关注这个项目,并非维护者。 |
我知道,但依旧感谢你的帮助 |
src/themes/index.ts
Outdated
return themeName; | ||
export async function loadTheme( | ||
editor: typeof import('monaco-editor-core').editor, | ||
dark = true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this param really necessary? How about returning an object
{ dark: 'vs-code-theme-converted-dark', light: 'vs-code-theme-converted-light' }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course can do this, then you need to judge whether to use light
or dark
when using it in the downstream repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Cuz we only need to execute loadTheme
once so that we cannot get dark and light for one execution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM