|
29 | 29 | import net.minecraft.client.gui.screens.Screen; |
30 | 30 | import net.minecraft.network.chat.CommonComponents; |
31 | 31 | import net.minecraft.network.chat.Component; |
| 32 | +import net.minecraft.util.CommonColors; |
32 | 33 | import org.jetbrains.annotations.ApiStatus; |
33 | 34 | import org.jetbrains.annotations.Nullable; |
34 | 35 |
|
@@ -92,10 +93,10 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) { |
92 | 93 | int o = this.isFocused() ? -1 : -6250336; |
93 | 94 | graphics.fill(k + 1, l, k + m, l + n, -16777216); |
94 | 95 | graphics.renderOutline(k, l, m, n, o); |
95 | | - graphics.drawCenteredString(this.font, title, this.width / 2, l + 12, 0xffffff); |
96 | | - graphics.drawCenteredString(this.font, text, this.width / 2, l + 12 + 9, 0x808080); |
| 96 | + graphics.drawCenteredString(this.font, title, this.width / 2, l + 12, CommonColors.WHITE); |
| 97 | + graphics.drawCenteredString(this.font, text, this.width / 2, l + 12 + 9, 0xFF808080); |
97 | 98 | if (subtitle != null) { |
98 | | - graphics.drawCenteredString(this.font, subtitle, this.width / 2, l + 12 + 9 + 9, 0x808080); |
| 99 | + graphics.drawCenteredString(this.font, subtitle, this.width / 2, l + 12 + 9 + 9, 0xFF808080); |
99 | 100 | } |
100 | 101 | } |
101 | 102 | } |
0 commit comments