Forum
    • Categories
    • Register
    • Login

    Colours added/removed in UI XML

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 32 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.
    • dannytaurusD
      dannytaurus
      last edited by dannytaurus

      I've noticed colours being added or removed in the UI XML files, even when I haven't touched the components being altered.

      Seems to be something in the source that adds/removes these colours for some reason.

      // XmlPresetBackups/SublimeUIData/SublimeDesktop.xml
      
      // After one save, bgColour and itemColour are removed from the XML:
       <Component type="ScriptLabel" id="lblHeaderSource" x="0" y="0" width="180"
                        height="14" parentComponent="pnlSource" fontName="Eurostar" fontSize="15.0"
                        alignment="centredTop" text="SOURCE" textColour="4291611852"
      -                 itemColour2="0" editable="0" bgColour="0" itemColour="0"/> // 👈 old line
      +                 itemColour2="0" editable="0"/> // 👈 new line
            
      // Then later, after another save, they're added back in again:
       <Component type="ScriptLabel" id="lblHeaderSource" x="0" y="0" width="180"
                        height="14" parentComponent="pnlSource" fontName="Eurostar" fontSize="15.0"
                        alignment="centredTop" text="SOURCE" textColour="4291611852"
      -                 itemColour2="0" editable="0"/> // 👈 old line
      +                 itemColour2="0" editable="0" bgColour="0" itemColour="0"/> // 👈 new line
      

      It causes lot of git noise. Any idea what's causing it?

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @dannytaurus
        last edited by

        @dannytaurus Maybe I'm misunderstanding but bgColour and itemColour are present in both of those blocks you posted.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        dannytaurusD 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @David Healey
          last edited by dannytaurus

          @David-Healey That's a git diff. The - lines represent the removed lines and the + lines are the added lines.

          It shows after the first save, the bgColour and itemColour properties were removed. Then later, after another save they were added back in.

          I guess if you don't use git on the command line you probably don't recognise the format, sorry! 😜

          EDIT: edited the original to show the old/new lines

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          David HealeyD 1 Reply Last reply Reply Quote 2
          • OrvillainO
            Orvillain
            last edited by

            Probably some tinyXML serialization type thing. I notice a lot of floating point values often change to ints and back again, from commit to commit. Tis a bit annoying.

            Musician - Instrument Designer - Sonic Architect - Creative Product Owner
            Crafting sound at every level. From strings to signal paths, samples to systems.

            dannytaurusD 1 Reply Last reply Reply Quote 1
            • David HealeyD
              David Healey @dannytaurus
              last edited by

              @dannytaurus said in Colours added/removed in UI XML:

              That's a git diff.

              Oh I see it now!

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              dannytaurusD 1 Reply Last reply Reply Quote 1
              • dannytaurusD
                dannytaurus @Orvillain
                last edited by

                @Orvillain Yeah, I made a PR that casts all x, y, width and height values to int before saving the XML.

                PR here: https://github.com/christophhart/HISE/pull/831

                But I can't pin down why the colours are added and removed.

                Meat Beats: https://meatbeats.com
                Klippr Video: https://klippr.video

                1 Reply Last reply Reply Quote 0
                • dannytaurusD
                  dannytaurus @David Healey
                  last edited by

                  @David-Healey Sorry, shoulda been more explicit about what I was posting!

                  Meat Beats: https://meatbeats.com
                  Klippr Video: https://klippr.video

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

                  18

                  Online

                  2.1k

                  Users

                  13.1k

                  Topics

                  113.8k

                  Posts