saschaleib / dokuwiki-template-ad-hominem

A lightweight and very flexible template for Dokuwiki. Supports user-side dark mode, is fully accessible and has a high-quality print mode. More info:
https://www.dokuwiki.org/template:ad-hominem
GNU General Public License v2.0
20 stars 4 forks source link

Editor : Customs plugins show the same icons #51

Open BenoitPoulet opened 1 week ago

BenoitPoulet commented 1 week ago

Hello,

With you themes , in the editor, customs plugins show the same icon, difficult so see what are theses icons. Look at the right of the icons.

image

Regards.

saschaleib commented 1 week ago

Hello and thanks for the report. Indeed, that is a side-effect of trying to override the default DokuWiki icons with something a bit more, well, stylish and easier to recognize. But unfortunately, the code that DokuWiki generates is a bit limiting and requires me to do all kinds of workarounds to get the right icon in the right place.

There are already a couple of "special cases" for plugins in the code. If you let me know which plugins you are using here, maybe I can add a few more.

Alternatively, you can use the userstyle.css to add something in the style of:

  #tool__bar #tbbtn_customplugin {
    background-image: url('/custom/images/mypluginicon.svg');
  }

to load your own custom icons here (the ID of the button, and the URL to the icon need to be adapted, of course.

Generally, if the plugin is well supported and others are using it (and would benefit from a specialized icon) I am happy to include it in the template code, if it is rather a fringe use-case, then the custom code is probably the better solution.