diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-03 21:39:36 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-03 21:39:36 +0800 |
| commit | 7689bdbb42ad10b2ad99e2bae55ddaceac15bca7 (patch) | |
| tree | 0e2ca1323fdfa14ce7a5239fe9bbefa778979b8b /src/main/java/me/shedaniel/rei/api | |
| parent | 8b1978b12906dce6860cc567bd9e46c60becef5d (diff) | |
| download | RoughlyEnoughItems-7689bdbb42ad10b2ad99e2bae55ddaceac15bca7.tar.gz RoughlyEnoughItems-7689bdbb42ad10b2ad99e2bae55ddaceac15bca7.tar.bz2 RoughlyEnoughItems-7689bdbb42ad10b2ad99e2bae55ddaceac15bca7.zip | |
Dark Mode
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/RecipeCategory.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RecipeCategory.java b/src/main/java/me/shedaniel/rei/api/RecipeCategory.java index 27a68eafd..9db9a349f 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeCategory.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeCategory.java @@ -5,6 +5,7 @@ package me.shedaniel.rei.api; +import me.shedaniel.rei.RoughlyEnoughItemsCore; import me.shedaniel.rei.gui.RecipeViewingScreen; import me.shedaniel.rei.gui.renderables.RecipeRenderer; import me.shedaniel.rei.gui.widget.CategoryBaseWidget; @@ -87,8 +88,13 @@ public interface RecipeCategory<T extends RecipeDisplay> { */ default void drawCategoryBackground(Rectangle bounds, int mouseX, int mouseY, float delta) { new CategoryBaseWidget(bounds).render(); - DrawableHelper.fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, RecipeViewingScreen.SUB_COLOR.getRGB()); - DrawableHelper.fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, RecipeViewingScreen.SUB_COLOR.getRGB()); + if (RoughlyEnoughItemsCore.getConfigManager().getConfig().darkTheme) { + DrawableHelper.fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, 0xFF404040); + DrawableHelper.fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, 0xFF404040); + } else { + DrawableHelper.fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, 0xFF9E9E9E); + DrawableHelper.fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, 0xFF9E9E9E); + } } /** |
