Skip to content

Commit

Permalink
Changed text color to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroksl committed Dec 27, 2024
1 parent 89e7786 commit d0e79fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.pedroksl.advanced_ae.xmod.emi.recipes;

import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.crafting.RecipeHolder;
Expand Down Expand Up @@ -52,7 +53,7 @@ public void addWidgets(WidgetHolder widgets) {
AAEText.ReactionChamberEnergy.text(this.recipe.getEnergy() / 1000),
width / 2 + 4,
70,
AAEText.TOOLTIP_DEFAULT_COLOR,
ChatFormatting.DARK_GRAY.getColor(),
false)
.horizontalAlign(TextWidget.Alignment.CENTER);
var energyLabelX = energyLabel.getBounds().x();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.pedroksl.advanced_ae.xmod.jei;

import net.minecraft.ChatFormatting;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.network.chat.Component;
Expand Down Expand Up @@ -121,7 +122,7 @@ public void draw(
var text = AAEText.ReactionChamberEnergy.text(recipe.getEnergy() / 1000);
FormattedCharSequence formattedcharsequence = text.getVisualOrderText();
var textX = getWidth() / 2 + 4 - font.width(formattedcharsequence) / 2;
guiGraphics.drawString(font, text, textX, 66, AAEText.TOOLTIP_DEFAULT_COLOR, false);
guiGraphics.drawString(font, text, textX, 66, ChatFormatting.DARK_GRAY.getColor(), false);

bolt.draw(guiGraphics, textX - 16, 64);
}
Expand Down

0 comments on commit d0e79fc

Please sign in to comment.