Skip to content

Commit

Permalink
Update icon library in mobile components
Browse files Browse the repository at this point in the history
The FontAwesome library used for back icons in MobilePersonDetailView and MobileCategoryHeader classes has been replaced with MaterialDesignA. Updated the icon declaration for backButton to reflect this change.
  • Loading branch information
leewyatt committed Jul 23, 2024
1 parent 72adcbe commit aacdf32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import javafx.scene.layout.Region;
import javafx.scene.layout.StackPane;
import org.kordamp.ikonli.Ikon;
import org.kordamp.ikonli.fontawesome.FontAwesome;
import org.kordamp.ikonli.javafx.FontIcon;
import org.kordamp.ikonli.materialdesign2.MaterialDesignA;

public class MobileCategoryHeader extends StackPane {

Expand All @@ -27,7 +27,7 @@ public MobileCategoryHeader() {

Button backButton = new Button();
backButton.getStyleClass().add("back-button");
backButton.setGraphic(new FontIcon(FontAwesome.ANGLE_LEFT));
backButton.setGraphic(new FontIcon(MaterialDesignA.ARROW_LEFT));
MobileLinkUtil.setGoToBackLink(backButton);

HBox topBox = new HBox(backButton);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import org.kordamp.ikonli.Ikon;
import org.kordamp.ikonli.fontawesome.FontAwesome;
import org.kordamp.ikonli.javafx.FontIcon;
import org.kordamp.ikonli.materialdesign2.MaterialDesignA;

import java.util.List;

Expand All @@ -49,7 +49,7 @@ public MobilePersonDetailView() {

Button backButton = new Button();
backButton.getStyleClass().add("back-button");
backButton.setGraphic(new FontIcon(FontAwesome.ANGLE_LEFT));
backButton.setGraphic(new FontIcon(MaterialDesignA.ARROW_LEFT));
MobileLinkUtil.setGoToBackLink(backButton);
StackPane.setAlignment(backButton, Pos.TOP_LEFT);

Expand Down

0 comments on commit aacdf32

Please sign in to comment.