HISE Logo Forum
    • Categories
    • Register
    • Login

    createPresetBrowserIcons Help

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 280 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.
    • DabDabD
      DabDab
      last edited by

      Help me to createPresetBrowserIcons via LAF

      Bollywood Music Producer and Trance Producer.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @DabDab
        last edited by

        @DabDab More detail needed

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        DabDabD 1 Reply Last reply Reply Quote 0
        • DabDabD
          DabDab @d.healey
          last edited by

          @d-healey

          ocalLaf.registerFunction("createPresetBrowserIcons", function(g, obj)
          {
          if(id=="favorite_on")
          {
          
            g.fillAll(Colours.red);
          }
          }
          );
          
          
          

          Not wrking

          I have tried 3 arguments (id,g,obj) not working

          Bollywood Music Producer and Trance Producer.

          d.healeyD orangeO 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @DabDab
            last edited by

            @DabDab All you can do with that function is set the svg icon. You can't color it or style it in any way. I'll post an example when I'm at my computer.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            DabDabD 1 Reply Last reply Reply Quote 0
            • orangeO
              orange @DabDab
              last edited by

              @DabDab There is a documentation for this: https://docs.hise.audio/glossary/custom_lookandfeel.html

              You can only use this like that:

              laf.registerFunction("createPresetBrowserIcons", function(id)
              {
                  if (id == "favorite_on")
                      return myFavoriteOnPath;
              
                  if (id == "favorite_off")
                      return myFavoriteOffPath;
                      
                  if (id == "searchIcon")
                      return mySearchIconPath;
              });
              

              For the color customization, change the itemColour of the Floating Tile

              develop Branch / XCode 13.1
              macOS Monterey / M1 Max

              DabDabD 1 Reply Last reply Reply Quote 1
              • DabDabD
                DabDab @orange
                last edited by

                @orange OK.. Superb got it. :) Thank you so much.

                Bollywood Music Producer and Trance Producer.

                1 Reply Last reply Reply Quote 0
                • DabDabD
                  DabDab @d.healey
                  last edited by

                  @d-healey Thank you . :)

                  Bollywood Music Producer and Trance Producer.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  43

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts