Problems with Gradient codes
-
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);
-
@tiesvdam are you doing this in the drawPresetBrowserBackground laf function?
-
@mmprod Yes