HISE Logo Forum
    • Categories
    • Register
    • Login

    Quick Question: Best practice for sizing UI elements

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 232 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.
    • G
      Gudru
      last edited by

      Hello,

      I would like to know what your best practice is for sizing elements in hise. When i size my elements in interface designer using decimals, sometimes hise doesnt render that properly and rounds down sometimes. Like if i put height in for panel as 10.50 it appears as 10 on screen. Is this carry to production or is it just interface designer thing. Is best practice just to use set whole numbers instead of pixels. If my ui was designed in retina, the elements designed are double the actual implementation for sizing purposes and some numbers can turn out to be decimals when dividing retina value by 2.

      Thank you

      G A 2 Replies Last reply Reply Quote 0
      • G
        Gudru @Gudru
        last edited by

        @Gudru any ideas?

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

          I believe non-decimal values are best, but I'm not certain.

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

          1 Reply Last reply Reply Quote 0
          • A
            aaronventure @Gudru
            last edited by

            If you're importing images at double the resolution, the width and height should be even numbers. Do this at the source. If you know your strips and images will be scaled down by 50%, their dimensions should be divisible by 2.

            Other than that, your best bet is to inspect things visually. Put the images in, set your target resolution and see how it looks. The designer is pretty much "what you see is what you get".

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

            53

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts