HISE Logo Forum
    • Categories
    • Register
    • Login

    for all the LAF Wizards - reverse rounded borders

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 289 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.
    • oskarshO
      oskarsh
      last edited by

      I am trying to achieve this look in HISE. I build this using Figma with a lot of hackery. I believe there would be the base panel and then a top panel for the navigation, probably something with paths. Ideally I would be able to choose the border radius and not rely on fixed svg paths.

      Is someone up for the challenge?
      4e3b55db-234e-4c3b-b9de-be84d03115f7-image.png

      HISE Developer for hire :)

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @oskarsh
        last edited by ustk

        @oskarsh Alright, a challenge with some quadratics is the perfect time to come back after months of inactivity !
        I was happy thinking there would be some trigonometry involved here, but... Disillusion... 😂

        HiseSnippet 1324.3ocsW0raaaDDdosYPjRSQCP68E5jTghfrRZZPCRi7eJvnN1BVpIsHHvXI4JoslZWVxk9mVXf9HzGg9nzi8ReW5gdOcFtjhjVpJ1BsT.Bbme+1Ymclg8CUt7nHUHwpxvKC3DqOxdvkR8jclvDRx96Rr9L69LI2eHyI5MBfQb3Y7Hx1WFvhh3dDKq0eIJpUkMHIO+0K1l4yjt7bRDxqUBW9AhoBcN09c+FgueOlGenXZAoeb28cUxcT9pX.Vqa2lDvbOkMleHCEaMah0c1ySnUgCzLMfEq02V4c4fIpykF4esHR33ywEaRF.FxPlryDguW+rsbDgXsQ+7.v5l.vmZ+JgmXF87.wmjvflqQwXf0ZKCRadKfjUAHsgAROvdfanHPmyAwy8r2Wp4giXPntHTLxRV6Oss2QARH0slxNk2KDVLSi5Ooc6lT3uFOqZUHbGoomwBoNZYD84z2lo3XtdG0z.kDVTu11wZsRtYsFMqRm6YYpzoVi2UxOAR+k3mjDtakaRzXNubL3hm7rBDF9liNAIdL8yocJIpl4bvV8.VY12MjCmjGnbY9GnTmtkzqGm6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wcSn.XRl78RUreEtllWQ1tcq1jov2xbhqKt8eHTLZw5zYEz4QqfNOdEz4KVAcdxJnyWtB57zkpC9YjaEqUSMWG.B82Ko8lk0dRFjYkjER9G9O6Pc.
        

        I took the easiest path, but it could've been done with a hidden row of buttons and the path entirely drawn in the panels themselves... This would have prevented the little gap between the buttons and the panels (although a 1px offset fixes the issue). This would also helped removing the gap between the buttons, or for instance using a long panel with mouse detection instead of the buttons... Many solutions for one problem !

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

        oskarshO 1 Reply Last reply Reply Quote 5
        • oskarshO
          oskarsh @ustk
          last edited by

          @ustk amazing and super clean! Welcome back :)

          inside the onbtnsControl

          for (btn in btns) {
              btn.getId() === component.getId() ?
                  component.setZLevel('Front') :
                  component.setZLevel('Default');
              }
          

          Problem solved :) now they properly overlap as-well. I like using actual buttons instead of panels.

          Thanks alot!

          HISE Developer for hire :)

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

          24

          Online

          1.7k

          Users

          11.8k

          Topics

          102.5k

          Posts