• Login
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 632 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.
  • K
    Kimpa Tammas
    last edited by Kimpa Tammas Oct 19, 2021, 8:12 AM Oct 19, 2021, 8:10 AM

    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
    • A
      artie-finkelstein
      last edited by Oct 20, 2021, 10:42 PM

      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.

      K 1 Reply Last reply Oct 21, 2021, 4:02 PM Reply Quote 2
      • K
        Kimpa Tammas @artie-finkelstein
        last edited by Oct 21, 2021, 4:02 PM

        @artie-finkelstein Thank you for your response.

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