Skip to content

Commit

Permalink
Simplified some background and border settings
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed May 11, 2024
1 parent 6998712 commit df5fb1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ public MenuItemContainer(MenuItem item){

// WebFX hardcoded style
setOnMouseEntered(e -> {
setBackground(new Background(new BackgroundFill(Color.web("#0096c9"), null, null)));
setBackground(Background.fill(Color.web("#0096c9")));
getLabel().setTextFill(Color.WHITE);
});
setOnMouseExited(e -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public ContextMenuSkin(final ContextMenu control) {
}
*/
// WebFX hardcoded style
root.setBorder(new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderStroke.THIN)));
root.setBorder(Border.stroke(Color.LIGHTGRAY));
root.setPadding(new Insets(2, 0, 3 , 0));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public TabHeaderArea() {
});*/

// WebFX addition (styling tab-header-area)
headerBackground.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, null, null)));
headerBackground.setBackground(Background.fill(Color.LIGHTGRAY));
//setBorder(new Border(new BorderStroke(Color.GRAY, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderStroke.THIN)));
setPadding(new Insets(5, 0, 0, 10)); // Setting for TOP
}
Expand Down

0 comments on commit df5fb1e

Please sign in to comment.