Skip to content

Commit

Permalink
chore: replaced a couple of deprecated icon usages
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Nov 7, 2024
1 parent a7346e8 commit 6997800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public TopPanel() {
super(AbstractThreePanelScreen.this);

closeButton = new SimpleButton(this, Component.translatable("gui.close"),
Icons.CLOSE, (btn, mb) -> doCancel());
Icons.CANCEL, (btn, mb) -> doCancel());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public KeyReferenceScreen(String... translationKeys) {

textPanel = new TextPanel(this);

closeButton = new SimpleTextButton(this, Component.translatable("gui.close"), Icons.CLOSE) {
closeButton = new SimpleTextButton(this, Component.translatable("gui.close"), Icons.CANCEL) {
@Override
public void onClicked(MouseButton button) {
onBack();
Expand Down

0 comments on commit 6997800

Please sign in to comment.