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

feat: added light theme #23

Merged
merged 5 commits into from Jun 27, 2023

Conversation

baiwusanyu-c
Copy link
Contributor

image

@baiwusanyu-c
Copy link
Contributor Author

baiwusanyu-c commented Jun 26, 2023

If monaco-volar supports light theme, this will affect vuejs/repl light theme implementation

src/themes/index.ts Outdated Show resolved Hide resolved
@Sight-wcg
Copy link
Contributor

@baiwusanyu-c 不好意思,我只是在关注这个项目,并非维护者。

@baiwusanyu-c
Copy link
Contributor Author

@baiwusanyu-c 不好意思,我只是在关注这个项目,并非维护者。

我知道,但依旧感谢你的帮助

return themeName;
export async function loadTheme(
editor: typeof import('monaco-editor-core').editor,
dark = true) {
Copy link

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' }

Copy link
Contributor Author

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

Copy link

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.

@baiwusanyu-c baiwusanyu-c requested a review from sxzz June 27, 2023 15:46
Copy link

@sxzz sxzz left a comment

Choose a reason for hiding this comment

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

LGTM

@johnsoncodehk johnsoncodehk merged commit 401c7f2 into Kingwl:main Jun 27, 2023
1 check passed
@baiwusanyu-c baiwusanyu-c deleted the bwsy/feat/light-style branch June 27, 2023 23:54
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.

None yet

4 participants