Skip to content

Commit bca205c

Browse files
committed
center method for icon
1 parent d5612fa commit bca205c

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/com/cleanroommc/modularui/drawable

1 file changed

+4
-0
lines changed

src/main/java/com/cleanroommc/modularui/drawable/Icon.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ public Icon alignment(Alignment alignment) {
9292
return this;
9393
}
9494

95+
public Icon center() {
96+
return alignment(Alignment.Center);
97+
}
98+
9599
public Icon color(int color) {
96100
this.color = color;
97101
return this;

0 commit comments

Comments
 (0)