Community
    • Login

    Customize Toolbar: Custom Fluent UI color icon don't change when disabled

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 626 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.
    • Kimpa TammasK
      Kimpa Tammas
      last edited by Kimpa Tammas

      I made a new Fluent UI icon for the “Save” feature. I enter the following line (Text menu is in French) in the Customize Toolbar.btn file:

      Fichier,Enregistrer une copie...,,,,save_dark.ico,save_light.ico
      

      “save_as_copy_dark.ico” is the dark gray icon (#4e4e4e) and “save_as_copy_light.ico” the light gray icon (#dedede).

      In the dark and light themes, icons are properly displayed with their respective colors. But, when the save action is disabled, the icon is not grayed (the color don’t change). Is an issue with ico format? My icons are initially on PNG format with alpha channel, then converted to ico 32 x 32 pixels 32 bits.

      1 Reply Last reply Reply Quote 0
      • artie-finkelsteinA
        artie-finkelstein
        last edited by

        this is coming from the cobwebs in my head-

        I don’t believe Notepad++ makes the required fine grained status information available to the pool of plugins. I believe it’s more of a one-way street where the plugin (or function) can invoke Notepad++/Scintilla code (send messages) to perform an editing action. A plugin knows it’s own state and can thus modify the icon to be displayed, but the ‘Customize Toolbar’ plugin can only replace the displayed icon based on the light/dark mode of the editor core, not on the internal state of an individual plugin or function.

        Kimpa TammasK 1 Reply Last reply Reply Quote 2
        • Kimpa TammasK
          Kimpa Tammas @artie-finkelstein
          last edited by

          @artie-finkelstein Thank you for your response.

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