aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-03 21:39:36 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-03 21:39:36 +0800
commit7689bdbb42ad10b2ad99e2bae55ddaceac15bca7 (patch)
tree0e2ca1323fdfa14ce7a5239fe9bbefa778979b8b /src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
parent8b1978b12906dce6860cc567bd9e46c60becef5d (diff)
downloadRoughlyEnoughItems-7689bdbb42ad10b2ad99e2bae55ddaceac15bca7.tar.gz
RoughlyEnoughItems-7689bdbb42ad10b2ad99e2bae55ddaceac15bca7.tar.bz2
RoughlyEnoughItems-7689bdbb42ad10b2ad99e2bae55ddaceac15bca7.zip
Dark Mode
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
index b21127cb6..41f9e042a 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
@@ -18,6 +18,7 @@ import java.util.List;
public class RecipeBaseWidget extends HighlightableWidget {
private static final Identifier CHEST_GUI_TEXTURE = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer.png");
+ private static final Identifier CHEST_GUI_TEXTURE_DARK = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer_dark.png");
private Rectangle bounds;
@@ -47,7 +48,7 @@ public class RecipeBaseWidget extends HighlightableWidget {
return;
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiLighting.disable();
- minecraft.getTextureManager().bindTexture(CHEST_GUI_TEXTURE);
+ minecraft.getTextureManager().bindTexture(RoughlyEnoughItemsCore.getConfigManager().getConfig().darkTheme ? CHEST_GUI_TEXTURE_DARK : CHEST_GUI_TEXTURE);
int x = bounds.x, y = bounds.y, width = bounds.width, height = bounds.height;
int textureOffset = getTextureOffset();
@@ -76,7 +77,7 @@ public class RecipeBaseWidget extends HighlightableWidget {
}
protected int getInnerColor() {
- return -3750202;
+ return RoughlyEnoughItemsCore.getConfigManager().getConfig().darkTheme ? 0xFF2E2E2E : -3750202;
}
protected int getTextureOffset() {