diff --git a/common/src/main/java/net/caffeinemc/mods/sodium/client/gui/widgets/CenteredFlatWidget.java b/common/src/main/java/net/caffeinemc/mods/sodium/client/gui/widgets/CenteredFlatWidget.java index 1cdcebb55d..7ad9c34ef2 100644 --- a/common/src/main/java/net/caffeinemc/mods/sodium/client/gui/widgets/CenteredFlatWidget.java +++ b/common/src/main/java/net/caffeinemc/mods/sodium/client/gui/widgets/CenteredFlatWidget.java @@ -45,7 +45,7 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) { this.hovered = this.isMouseOver(mouseX, mouseY); int backgroundColor = this.hovered ? this.theme.bgHighlight : (this.selected ? this.theme.bgDefault : this.theme.bgInactive); - int textColor = this.selected || !this.isSelectable ? this.theme.themeLighter : this.theme.themeDarker; + int textColor = this.selected || !this.isSelectable ? this.theme.themeLighter : this.hovered ? this.theme.theme : theme.themeDarker; int x1 = this.getX(); int y1 = this.getY();