Skip to content

Commit b5aca21

Browse files
committed
fix StyledText using color instead of textColor
1 parent 687565a commit b5aca21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cleanroommc/modularui/drawable/text/StyledText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public String getFormatted() {
4040
@Override
4141
public void draw(GuiContext context, int x, int y, int width, int height, WidgetTheme widgetTheme) {
4242
renderer.setAlignment(this.alignment, width, height);
43-
renderer.setColor(this.color != null ? this.color.getAsInt() : widgetTheme.getColor());
43+
renderer.setColor(this.color != null ? this.color.getAsInt() : widgetTheme.getTextColor());
4444
renderer.setScale(this.scale);
4545
renderer.setPos(x, y);
4646
renderer.setShadow(this.shadow != null ? this.shadow : widgetTheme.getTextShadow());

0 commit comments

Comments
 (0)