Community
    • Login

    Change toolbar icon theme

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hhjarppfh
      last edited by

      Want to replace toolbar icons with my custom theme.
      However there is a huge bummer: 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.
      Ive tried fiddling with it and putting my custom icons over soild background like in the original bitmaps but it would immediately break the disabled icon.

      If I replace the fluent monochrome icons which are .ico, then yeah it will work because there exist normal and greyed out icons there. But how on earth do I rename the theme? It would still show up as fluent in the preferences.

      Any option to import the custom icon theme? I would really just want to replace bitmaps but I have no idea what controls the greyed out effect on disabled icons.

      Here is how it looks: custom back icon on the far right (disabled), and standard theme icons cut and copy disabled - on the far left

      No play unless I know what exact thing or preference controls the fadeout effect.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @hhjarppfh
        last edited by PeterJones

        @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.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors