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

Support for solarized dark and light themes #948

Merged
merged 2 commits into from
Oct 13, 2017

Conversation

wrhansen
Copy link

@wrhansen wrhansen commented Oct 9, 2017

Fixes #896

CodeMirror seems to have the two solarized themes within the
node_modules/coemirror/theme/solarized.css. So passing the string
"solarized light" and "solarized dark" to the editor theme appropriately
sets these themes.

The Boostnote app appears to be dynamically determining themes based
on the css files found within node_modules/codemirror/theme/.
So that's why there was just a single option of 'solarized' before.

The light and dark 'solarized' themes appear to be the only themes
that share a css style, whereas all other light and dark variarnt
themes get their own css file (ex: base16-dark.css and base16-light.css).

Weird!

CodeMirror seems to have the two solarized themes within the
`node_modules/coemirror/theme/solarized.css`. So passing the string
"solarized light" and "solarized dark" to the editor theme appropriately
sets these themes.

The Boostnote app appears to be dynamically determining themes based
on the css files found within `node_modules/codemirror/theme/`.
So that's why there was just a single option of 'solarized' before.

The light and dark 'solarized' themes appear to be the *only* themes
that share a css style, whereas all other light and dark variarnt
themes get their own css file (ex: base16-dark.css and base16-light.css).

Weird!
@asmsuechan
Copy link
Contributor

Oh, I didn't know it... It sure is it's weird.

@asmsuechan asmsuechan merged commit b890c59 into BoostIO:master Oct 13, 2017
@asmsuechan
Copy link
Contributor

Thanks!

@kazup01
Copy link
Member

kazup01 commented Oct 13, 2017

Thanks @wrhansen !

@kohei-takata kohei-takata mentioned this pull request Oct 28, 2017
@kazup01
Copy link
Member

kazup01 commented Oct 28, 2017

This feature has just released at v0.8.16! I using solarized dark, right away :)
Thanks for your contribution @wrhansen !
#1027

@kazup01
Copy link
Member

kazup01 commented Oct 29, 2017

@fladd
Copy link

fladd commented Nov 3, 2017

Cool, but unfortunately does not work. See: #1060

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

5 participants