Edditoria / markdown-plus-plus

Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)
MIT License
1.49k stars 277 forks source link

Dark theme compatible blackboard theme #36

Closed andrewhu-uw closed 5 years ago

andrewhu-uw commented 6 years ago

When you use a theme other than Blackboard, (e.g. Bespin) the background colors look different than the actual background.

In order to solve this, you can just add colorStyle="1" (AKA transparency) to the WordStyle tag. This can also be accomplished by right-clicking the color in the styler.

I just created a separate file in case it does something weird with other themes you always have the option using the normal styles

Edditoria commented 5 years ago

Wow! This is a good trick. Didn't know that.

I make this optional. Just change the json file key "transparentBg" to true, and then . build.sh [themeName] again. It will create 2 XML files same as that "compatible" file you'd created.

However, NPP is not smart enough to auto-switch or be adaptive when the user choose a wrong theme. It is risky that some users may miss some information when s/he read docs. (Font color is too close to background).

So, I decide to set it false in the meantime. I'm considering to set this option as default in next release.

Thanks for your contribution!