Daeraxa / joplin-plugin-match-highlight

Marks words that match the highlighted selection
2 stars 0 forks source link

Configure background color #1

Open imochoa opened 1 year ago

imochoa commented 1 year ago

Thanks for the awesome plugin!

I had one proposal for improvement. It seems like the color is hard-coded here: https://github.com/Daeraxa/joplin-plugin-match-highlight/blob/0758f69ceade163c7fead07852658e3a35304930/src/highlight.css#L2

Would it be possible to set that color in the plugin configuration page?

It would be cool if the default was different when running in "dark mode", but setting the color manually would also be great :)

Daeraxa commented 1 year ago

Thanks for the kind words. I do need to revisit this and add a bunch of setting things, in the meantime you can actually set the colour manually using CSS. For example just add:

.cm-matchhighlight {
  background-color: #6b6b6b !important;
}

to your userchrome.css (tools > options > appearance > show advanced settings > Custom stylesheet for Joplin-wide app styles) - or whatever colour you want.

imochoa commented 1 year ago

That works for now, thanks :)