mohzy83 / NppMarkdownPanel

Lightweight Notepad++ plugin to preview Markdown files
MIT License
224 stars 36 forks source link

Fails to pick up Dark Mode in Npp #70

Closed Darthagnon closed 1 year ago

Darthagnon commented 1 year ago

Bug:

Plugin fails to apply style-dark.css when dark mode is enabled in Npp (v8.2, 32 bit)

As a workaround I just set the default stylesheet to the dark one, but it isn't detecting the switch within Npp. I'll post back after a PC restart, maybe that will fix it.

Win10 v1709

rautamiekka commented 1 year ago

1709 has been dead for almost 3y ...

mohzy83 commented 1 year ago

The plugin detects the dark mode with an API which was added in version 8.4.1 of NPP. See here: https://npp-user-manual.org/docs/plugin-communication/#nppm-isdarkmodeenabled Means dark mode support doesn't work with version 8.2 Is it possible for you to upgrade your npp version? grafik

Darthagnon commented 1 year ago

Is it possible for you to upgrade your npp version?

Done! All working perfectly now! Thank you! Would it be possible to add a note to the Readme, e.g. "automatic dark/light mode switching supported in NPP v8.4.1+, earlier versions require manual switching or setting style-dark.css as default"?

mohzy83 commented 1 year ago

Done! All working perfectly now! Thank you! Would it be possible to add a note to the Readme, e.g. "automatic dark/light mode switching supported in NPP v8.4.1+, earlier versions require manual switching or setting style-dark.css as default"?

Great! Sure I will add a note to the Readme.