Closed RayanFar closed 5 years ago
I'm not sure what this means. "Border" is just a layer. You can have a border that is also a quad, for example, and will fill in the whole "background"... but then you can also have a background component that will be drawn on top of that.
Is that not working or is there just a misunderstanding?
no it is not working...
win.setBorder(new QuadBackgroundComponent(ColorRGBA.Blue));
win.setBackground(new QuadBackgroundComponent(ColorRGBA.Black));
The default margin for QuadBackgroundComponent is 0,0 so those will lay right on top of each other. Try: win.setBorder(new QuadBackgroundComponent(ColorRGBA.Blue, 5, 5)); win.setBackground(new QuadBackgroundComponent(ColorRGBA.Black, 5, 5)); ...or similar non-zero margin values.
changing border of container will change the background too...
version -> lemur 1.12.0