HISE Logo Forum
    • Categories
    • Register
    • Login

    Pop up styling

    Scheduled Pinned Locked Moved General Questions
    11 Posts 2 Posters 403 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.
    • LindonL
      Lindon
      last edited by

      So I've been doing some pop up styling:

      // set the popup styling
      Content.setValuePopupData({
      "fontName":"PTSans",
      "fontSize": 20,
      "borderSize": 1,
      "borderRadius": 6,
      "margin":2,
      "bgColour": 0xffffffff,
      "itemColour": 0xff707070,
      "itemColour2": 0xff707070,
      "textColour": 0xFFFFFFFF 
      });
      

      which gives me this:

      6e6c0413-b1fb-47c3-9a47-b24e3a5d174a-image.png

      So my question....

      anyone know a way to style the outside of the "box" to also curve like the grey area?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon That is because of the shadow, it would be nice to have a property to remove it "dropShadow": bool

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

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @ustk
          last edited by

          @ustk said in Pop up styling:

          @Lindon That is because of the shadow, it would be nice to have a property to remove it "dropShadow": bool

          er no I dont think it is, you can change the border size but it doesnt get rid of the squared outer edges, that I think has nothing to do with shadowing...

          HISE Development for hire.
          www.channelrobot.com

          ustkU 2 Replies Last reply Reply Quote 0
          • ustkU
            ustk @Lindon
            last edited by

            @Lindon Yes, I made some tests when setting alpha at 0 for the shadow you don't see the square of the popup anymore. The shadow isn't set for the drawn rectangle but for the entire popup. I'm trying to set the same colour for the shadow than for the bgColour. It is currently fixed to black. Well I might not succeed but stay tuned ;)

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

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

              @Lindon Well bgColour won't work anyway because it is used for the rounded rectangle so there always be a gap between the rounded corner and the shadow. The only way is to be able to set the shadow alpha to 0 (so its colour)

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

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @ustk
                last edited by

                @ustk the shadow alpha? what property is that and where do I find it?

                HISE Development for hire.
                www.channelrobot.com

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

                  @Lindon It needs to be created...

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

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @ustk
                    last edited by Lindon

                    @ustk

                    " I made some tests when setting alpha at 0 for the shadow you don't see the square of the popup anymore"

                    -- you mean you are doing this now in the C++?

                    if so..where?

                    HISE Development for hire.
                    www.channelrobot.com

                    ustkU 2 Replies Last reply Reply Quote 0
                    • ustkU
                      ustk @Lindon
                      last edited by ustk

                      @Lindon Exactly, I'm trying to make it updatable
                      it's in ScriptComponentWrappers.h/.cpp

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

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

                        @Lindon I created a new colour property but I can't seem to pass it to the DropShadower... I hit my C++ limits :)

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

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @ustk
                          last edited by

                          @ustk dont worry mate - thanks for looking

                          HISE Development for hire.
                          www.channelrobot.com

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

                          38

                          Online

                          1.8k

                          Users

                          12.0k

                          Topics

                          104.4k

                          Posts