HISE Logo Forum
    • Categories
    • Register
    • Login

    Problems with Gradient codes

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 61 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.
    • T
      tiesvdam
      last edited by

      Hey all!

      I'm busy designing my plugin. I'm just running into some issues with the gradients, especially with the preset browser. I managed to get it working with the columns, but I can't figure it out for the actual background. I want to extend the same gradient to the background. For the column, I used the following code: [code snippet]. But when I use this in the LookAndFeel (LAF) of the preset browser, it becomes transparent.

      g.setGradientFill([Colours.fromVec4([0.043, 0.043, 0.051, 1.0]), 100, 250,
                        			Colours.fromVec4([0.239, 0.231, 0.271, 1.0]), 100, 100,
                        			false]);  
      		g.fillRoundedRectangle(a, 0);
      

      Scherm­afbeelding 2025-01-20 om 11.39.51.png

      mmprodM 1 Reply Last reply Reply Quote 0
      • mmprodM
        mmprod @tiesvdam
        last edited by

        @tiesvdam are you doing this in the drawPresetBrowserBackground laf function?

        For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
        John 3:16

        T 1 Reply Last reply Reply Quote 0
        • T
          tiesvdam @mmprod
          last edited by

          @mmprod Yes

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

          14

          Online

          1.7k

          Users

          11.8k

          Topics

          102.8k

          Posts