aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-03-06 04:18:21 +0800
committershedaniel <daniel@shedaniel.me>2020-03-06 04:18:21 +0800
commit12223ae029f3d206ebb19ba0cd134e3c36827315 (patch)
tree85c1743dfb0855aef23855a92240279a0a019eec /src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java
parent2bf1e9f370a4c52a61575f0405425a51c670abed (diff)
downloadRoughlyEnoughItems-12223ae029f3d206ebb19ba0cd134e3c36827315.tar.gz
RoughlyEnoughItems-12223ae029f3d206ebb19ba0cd134e3c36827315.tar.bz2
RoughlyEnoughItems-12223ae029f3d206ebb19ba0cd134e3c36827315.zip
3.0.7
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java
index 33b135d34..fed7499f9 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/TextFieldWidget.java
@@ -26,7 +26,7 @@ package me.shedaniel.rei.gui.widget;
import com.mojang.blaze3d.systems.RenderSystem;
import me.shedaniel.math.api.Rectangle;
import me.shedaniel.math.impl.PointHelper;
-import me.shedaniel.rei.impl.ScreenHelper;
+import me.shedaniel.rei.api.REIHelper;
import net.minecraft.SharedConstants;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.render.BufferBuilder;
@@ -405,7 +405,7 @@ public class TextFieldWidget extends WidgetWithBounds implements Tickable {
public void renderBorder() {
if (this.hasBorder()) {
if (containsMouse(PointHelper.fromMouse()) || focused)
- fill(this.bounds.x - 1, this.bounds.y - 1, this.bounds.x + this.bounds.width + 1, this.bounds.y + this.bounds.height + 1, ScreenHelper.isDarkModeEnabled() ? -17587 : -1);
+ fill(this.bounds.x - 1, this.bounds.y - 1, this.bounds.x + this.bounds.width + 1, this.bounds.y + this.bounds.height + 1, REIHelper.getInstance().isDarkThemeEnabled() ? -17587 : -1);
else
fill(this.bounds.x - 1, this.bounds.y - 1, this.bounds.x + this.bounds.width + 1, this.bounds.y + this.bounds.height + 1, -6250336);
fill(this.bounds.x, this.bounds.y, this.bounds.x + this.bounds.width, this.bounds.y + this.bounds.height, -16777216);