Skip to content

Commit

Permalink
Update UI elements and modify button interaction
Browse files Browse the repository at this point in the history
UI elements have been adjusted in the mobile.css file, including changing shadow effects to border properties for a more modern and clean look. In the BottomMenuBar.java file, the interaction with the home button has been changed from reacting on mouse click to mouse press for a smoother user experience.
  • Loading branch information
leewyatt committed Jul 22, 2024
1 parent bd8512c commit 973de28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public BottomMenuBar() {
homeButton.setGraphic(new FontIcon(MaterialDesign.MDI_HOME));
homeButton.setMaxWidth(Double.MAX_VALUE);
homeButton.setUserData(PagePath.HOME);
homeButton.setOnMouseClicked(evt -> {
homeButton.setOnMousePressed(evt -> {
if (homeButton.isSelected()) {
// If the home page is being displayed, clicking homeButton will hide the search view and display the normal content.
MobileHomePage.getInstance().setContentType(MobileHomePage.ContentType.NORMAL);
Expand Down
11 changes: 7 additions & 4 deletions mobile/src/main/resources/com/dlsc/jfxcentral2/mobile/mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@
.category-tile-view .category-tile {
-fx-background-color: -white;
-fx-background-radius: 12px;
-fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.2), 12, 0, 0, 0);
-fx-border-color: -grey-10;
-fx-border-radius: 12px;
-fx-padding: 10px;
-fx-max-height: 200px;
}
Expand Down Expand Up @@ -289,9 +290,10 @@
.category-preview-view > .content > .category-cell {
-fx-background-color: -white;
-fx-background-radius: 10px;
-fx-border-color: -grey-10;
-fx-border-radius: 10px;
-fx-padding: 10px;
-fx-spacing: 15px;
-fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.1), 5, 0.5, 0, 1);
}

.category-preview-view > .content > .category-cell .avatar-view {
Expand Down Expand Up @@ -454,9 +456,10 @@
}

.week-links-view .md-view {
-fx-background-radius: 12px;
-fx-background-radius: 10px;
-fx-background-color: #fefefe;
-fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.3), 15, 0, 0, 0);
-fx-border-color: -grey-10;
-fx-border-radius: 10px;
}

.week-links-view:md-lg .md-view {
Expand Down

0 comments on commit 973de28

Please sign in to comment.