Skip to content

Commit 449d74f

Browse files
committed
Recenter config screen title
1 parent 1502980 commit 449d74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/yalter/mousetweaks/ConfigScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public ConfigScreen(Screen previous) {
1919
protected void init() {
2020
Main.config.read();
2121

22-
this.addRenderableWidget(new StringWidget(0, 15, this.width, 9, this.title, this.font));
22+
this.addRenderableWidget(new StringWidget(this.width / 2 - this.font.width(this.title) / 2, 15, this.width, 9, this.title, this.font));
2323

2424
this.addRenderableWidget(CycleButton.onOffBuilder(Main.config.rmbTweak)
2525
.create(this.width / 2 - 155, this.height / 6, 150, 20,

0 commit comments

Comments
 (0)