Skip to content

Commit

Permalink
Auto adapts x-coord of FavoritesButton icon
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Jan 2, 2025
1 parent c08e241 commit d6a56bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ protected MixinGuiConfigBase(int listX, int listY) {
return;
}

int xOffset = Configs.fastSwitchMasaConfigGui.getBooleanValue() ? 132 : 28;
MalilibFavoritesButton favoritesButton = MalilibFavoritesButton.create(
this.width - 132, 10, MalilibFavoritesData.getInstance().isFilterSwitch(),
this.width - xOffset, 10, MalilibFavoritesData.getInstance().isFilterSwitch(),
status -> {
MalilibFavoritesData.getInstance().setFilterSwitch(status);
ValueContainer.ofNullable(this.getListWidget()).ifPresent(w -> {
Expand Down

0 comments on commit d6a56bf

Please sign in to comment.