[SOLVED] What is the reason for this shadow on the left side of the lemur container?

this is in the style script:
def gradient = TbtQuadBackgroundComponent.create(
texture( name:“Interface/theme/dark/icons/bordered-gradient.png”,
generateMips:false ),
1, 1, 1, 126, 126,
1f, false );

and the image is:
bordered-gradient

and the result is :frowning:
Screenshot_20201121_020849

how to solve it?

1 Like

It looks like you are using Lemur’s glass style

Do you call anything like this in your code?

    GuiGlobals.getInstance().getStyles().setDefaultStyle("glass");

It is likely you may have put that line into your code without realizing it if you have been referencing code from lemur examples, as they often use the glass style.

1 Like

It looks like the stretching is bleeding in some of the border. Maybe try increasing the lower bound to 2,2 and see if that helps.

Edit: yeah, if I open your image in photoshop it has a gray border just inside the green one:
image

3 Likes

thank you so much, I removed the gray border and it works correctly.

3 Likes