Skip to content

Commit

Permalink
Fixed background for SettingsScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisixo committed Jun 10, 2023
1 parent 2c4bdff commit 7a82736
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,14 @@ private SpruceContainerWidget buildTabContainer(int width, int height, SpruceTab
innerWidget.getPosition().setRelativeY(43);
container.addChild(innerWidget);

container.setBackground((matrices, widget, vOffset, mouseX, mouseY, delta) -> {
container.setBackground((graphics, widget, vOffset, mouseX, mouseY, delta) -> {
if (this.client.world != null) {
// Commented because i can't find a solution

// this.fillGradient(matrices, widget.getX(), widget.getY(),
// widget.getX() + widget.getWidth(), innerWidget.getY(),
// 0xc0101010, 0xd0101010);
// this.fillGradient(matrices, widget.getX(), innerWidget.getY() + innerWidget.getHeight(),
// widget.getX() + widget.getWidth(), widget.getY() + widget.getHeight(),
// 0xc0101010, 0xd0101010);
graphics.fillGradient(widget.getX(), widget.getY(),
widget.getX() + widget.getWidth(), innerWidget.getY(),
0xc0101010, 0xd0101010);
graphics.fillGradient(widget.getX(), innerWidget.getY() + innerWidget.getHeight(),
widget.getX() + widget.getWidth(), widget.getY() + widget.getHeight(),
0xc0101010, 0xd0101010);
} else {
var bg = (DirtTexturedBackground) DirtTexturedBackground.NORMAL;
RenderUtil.renderBackgroundTexture(widget.getX(), widget.getY(),
Expand Down

0 comments on commit 7a82736

Please sign in to comment.