@hhjarppfh said in Change toolbar icon theme:
if I replace standard icons which are bitmaps it will work but the original fadeout effect (when the icon is disabled / faded out) will disappear.
I disagree. The User Manual section on Toolbar Icon Customization includes instructions for how to replace the full set of toolbar icons, including the “disabled” versions for save, save all, cut, copy, paste, undo, redo, file monitoring, and the various macro buttons.
But how on earth do I rename the theme? It would still show up as fluent in the preferences.
(Aside: “Theme” is not the right term. “Theme”, in Notepad++, refers to the editor panel’s color scheme, as defined by the Style Configurator. Notepad++ doesn’t really have a word for a “set of toolbar icons”, so I used “set” in the user manual.)
For the icons, either you choose one of the 5 built-in groups, or you have your custom icons enabled with the toolbarIcons.xml to enable them. If you want to “name” them, you can have different subdirectories (the user manual uses the example of myAwesomeIcons; the nppLegacyIconSet zipfile that you can get from the 8.4.2 release page contains examples of nppLegacyIcons\, message\, and kidsIcons\) and then you just call out the subdirectory name in the toolbarIcons.xml file.
You cannot change enable/disable/switch the custom icon set from within the Notepad++ GUI – you have to exit Notepad++, edit or delete toolbarIcons.xml, and restart Notepad++. This was meant as a set-once-and-forget, not a change-often configuration, so the developer decided against a way to change them in the GUI.
—
For example, here’s a screenshot of using the “message” set of icons from that zipfile:
ecb6ec56-5a8b-4142-952a-de5575c1dfb8-image.png
There is nothing to save, so Save button is disabled; because there is no icon message\save_disabled.ico in that bundle, it defaults to the "disabled"version of Save from the active Settings > Preferences > Toolbar setting.
If I type something, then there is something to save, and it un-disables, showing the icon from the set:
48c070e2-1e01-47d9-85f9-0b388a728031-image.png
But since there is a message\redo_disabled.ico, the Redo button correctly shows disabled using that icon, from the beginning.
If you have all 45 of the icon files in the folder referenced by toolbarIcons.xml, then the enabled/disabled will work on all the ones that have both states defined.