aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.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/RecipeViewingScreen.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/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
index 8884fb380..e420ec1c6 100644
--- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
@@ -36,7 +36,6 @@ import java.util.function.Supplier;
public class RecipeViewingScreen extends Screen {
public static final Identifier CHEST_GUI_TEXTURE = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer.png");
- public static final Color SUB_COLOR = new Color(159, 159, 159);
private static final int TABS_PER_PAGE = 5;
private final List<Widget> widgets;
private final List<TabWidget> tabs;
@@ -344,8 +343,13 @@ public class RecipeViewingScreen extends Screen {
selectedCategory.drawCategoryBackground(bounds, mouseX, mouseY, delta);
else {
new CategoryBaseWidget(bounds).render();
- fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, SUB_COLOR.getRGB());
- fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, SUB_COLOR.getRGB());
+ if (RoughlyEnoughItemsCore.getConfigManager().getConfig().darkTheme) {
+ fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, 0xFF404040);
+ fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, 0xFF404040);
+ } else {
+ fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, 0xFF9E9E9E);
+ fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, 0xFF9E9E9E);
+ }
}
tabs.stream().filter(tabWidget -> !tabWidget.isSelected()).forEach(tabWidget -> tabWidget.render(mouseX, mouseY, delta));
GuiLighting.disable();