-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add Nord editor theme #2887
add Nord editor theme #2887
Conversation
I've also added a PR to the codemirror repo for the nord theme, maybe it will streamline the theme loading for the editor 😉codemirror/codemirror5#5782 |
browser/lib/consts.js
Outdated
themes.splice(themes.indexOf('solarized'), 1, 'solarized dark', 'solarized light') | ||
const isProduction = process.env.NODE_ENV === 'production' | ||
const paths = [ | ||
isProduction ? path.join(app.getAppPath(), './node_modules/codemirror/theme') : path.resolve('./node_modules/codemirror/theme'), |
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.
Just one small request, this path string repeated 2 times. Can you put it in a variable?
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.
It's done.
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 🎉
Description
This change adds the Nord theme as an editor theme.
The following screen shot uses both Nord theme (UI and editor):
Issue fixed
Type of changes
Checklist: