HISE Logo Forum
    • Categories
    • Register
    • Login

    How one draw the Save Preset button?

    Scheduled Pinned Locked Moved General Questions
    14 Posts 3 Posters 189 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.
    • ustkU
      ustk @d.healey
      last edited by ustk

      @d-healey said in How one draw the Save Preset button?:

      @ustk said in How one draw the Save Preset button?:

      but how can we scale it?

      I don't think you can.

      That would be very inconvenient, I'll try to mod the source then...
      Or perhaps just padding my SVG 😉

      @ustk said in How one draw the Save Preset button?:

      Also, how can we access the Main favourite button?

      It changes with the icon.

      Yeah I got that int my screenshot

      However I just noticed in my project I'm styling it in the drawDialogButton LAF with if (obj.text == "Show Favorites") But it could be that I added a modification in my fork to make this possible, I can't recall.

      Try this, but yeah it might be a mod of your own, since I couldn't see "Show Favorites" in obj.text...

      Can't help pressing F5 in the forum...

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

        @d-healey Check out my video about…

        This should be an auto-bot response here. 🤣

        1 Reply Last reply Reply Quote 3
        • d.healeyD
          d.healey @ustk
          last edited by

          @ustk said in How one draw the Save Preset button?:

          Try this, but yeah it might be a mod of your own,

          Trying to find the commit where/if I added this...

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

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

            Here it is - https://github.com/davidhealey/HISE/commit/fa3e67e13ebfe954018a122133b854047deab1b8

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

            ustkU 2 Replies Last reply Reply Quote 1
            • ustkU
              ustk @d.healey
              last edited by ustk

              @d-healey Legend! 😎 Checking in a second…

              Can't help pressing F5 in the forum...

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey This is worth a pull request, isn't it?

                Can't help pressing F5 in the forum...

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

                  @ustk It would probably need a preprocessor definition or perhaps a data property, otherwise all previous projects that use the preset browser will be affected.

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

                  ustkU 2 Replies Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey Yeah I know, shame... A better way would be to catch that ShapeButton like it is possible for the TextButton but I don't how and if it is possible...

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk @d.healey
                      last edited by

                      @d-healey So it finally wasn't necessary. The colour of the fav icon is set with itemColour so I just had to invert the colour I was using in the property editor. This way it is possible to change the icon and the colour.

                      In the end I find the preset browser quite tricky and unintuitive to customise, but hey, it's possible...

                      Can't help pressing F5 in the forum...

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

                        @ustk said in How one draw the Save Preset button?:

                        So it finally wasn't necessary.

                        Oh that's right, I just remembered why I needed to change it, I wanted my button to look like this:

                        bd2607d8-2ab2-48e1-8098-76d72aa2ac7c-image.png

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

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

                        36

                        Online

                        1.8k

                        Users

                        12.1k

                        Topics

                        105.0k

                        Posts