aboutsummaryrefslogtreecommitdiff
path: root/api/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-01-14 23:37:16 +0800
committershedaniel <daniel@shedaniel.me>2022-01-14 23:37:16 +0800
commit37c1b37a6065b9f61e7076d79ee1e728f7bd906a (patch)
tree8fef2d96dbafccfe393c1c5c97a8293bcfc61a95 /api/src/main/java
parenta036040208ed15ef7029cb3aecc033a3200edeaf (diff)
downloadRoughlyEnoughItems-37c1b37a6065b9f61e7076d79ee1e728f7bd906a.tar.gz
RoughlyEnoughItems-37c1b37a6065b9f61e7076d79ee1e728f7bd906a.tar.bz2
RoughlyEnoughItems-37c1b37a6065b9f61e7076d79ee1e728f7bd906a.zip
Introduce config button menu
Diffstat (limited to 'api/src/main/java')
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/REIRuntime.java2
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Label.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/REIRuntime.java b/api/src/main/java/me/shedaniel/rei/api/client/REIRuntime.java
index 1af65d4ad..da264de0e 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/REIRuntime.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/REIRuntime.java
@@ -82,6 +82,8 @@ public interface REIRuntime extends Reloadable<REIClientPlugin> {
ResourceLocation getDefaultDisplayTexture();
+ ResourceLocation getDefaultDisplayTexture(boolean darkTheme);
+
SearchFieldLocation getContextualSearchFieldLocation();
@ApiStatus.ScheduledForRemoval
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Label.java b/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Label.java
index 13822f61f..95c53bdca 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Label.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Label.java
@@ -330,7 +330,7 @@ public abstract class Label extends WidgetWithBounds {
public abstract void setColor(int color);
- public final Label color(int lightModeColor, int darkModeColor) {
+ public Label color(int lightModeColor, int darkModeColor) {
return color(REIRuntime.getInstance().isDarkThemeEnabled() ? darkModeColor : lightModeColor);
}