Skip to content

Commit

Permalink
update bar type and retain fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
gleidsonmt committed Jan 24, 2020
1 parent ca7b0d1 commit 0c406a0
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 23 deletions.
18 changes: 2 additions & 16 deletions src/com/gn/decorator/GNDecorator.java
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public void floatActions(){
*/
public void floatActions(Region bar2){
AnchorPane.setTopAnchor(areaContent, 0D);
bar.toFront();
// bar.toFront();
bar_content.getChildren().removeAll(title_content, menu);
AnchorPane.clearConstraints(bar);
AnchorPane.setTopAnchor(bar, 0D);
Expand Down Expand Up @@ -1391,52 +1391,38 @@ public void initTheme(Theme theme){
break;
case DANGER:
this.background.getStylesheets().clear();
// add css
this.background.getScene().getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
this.background.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/danger.css").toExternalForm());
break;
case INFO :
this.background.getStylesheets().clear();
// add css
this.background.getScene().getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
this.background.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/info.css").toExternalForm());
break;
case PRIMARY:
this.background.getStylesheets().clear();
// add css
this.background.getScene().getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
this.background.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/primary.css").toExternalForm());
break;
case SECONDARY:
this.background.getStylesheets().clear();
// add css
this.background.getScene().getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
this.background.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/secondary.css").toExternalForm());
break;
case SUCCESS:
this.background.getStylesheets().clear();
// add css
this.scene.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
this.background.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/success.css").toExternalForm());
break;
case WARNING:
this.background.getStylesheets().clear();
// add css
this.background.getScene().getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
this.background.getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/warning.css").toExternalForm());
break;
case CUSTOM:
this.background.getStylesheets().clear();
// add css
this.background.getScene().getStylesheets().add(getClass().getResource("/com/gn/resources/css/theme/roboto.css").toExternalForm());
// add theme
// this.background.getStylesheets().add(getClass().getResource("/css/theme/custom.css").toExternalForm());
this.background.getStylesheets().add(getClass().getResource("/css/theme/custom.css").toExternalForm());
break;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/com/gn/resources/css/theme/danger.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
-gn-fill : white;
-fx-text-fill : white;
-fx-fill : white;
-fx-font-family: 'Roboto Medium';
}

.gn-buttons *:hover
Expand Down
3 changes: 1 addition & 2 deletions src/com/gn/resources/css/theme/info.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
-gn-fill : white;
-fx-text-fill : white;
-fx-fill : white;
-fx-font-family: 'Roboto Medium';


}

.gn-buttons .button:hover
Expand Down
1 change: 0 additions & 1 deletion src/com/gn/resources/css/theme/primary.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
-gn-fill : white;
-fx-text-fill : white;
-fx-fill : white;
-fx-font-family: 'Roboto Medium';
}

.gn-buttons *:hover
Expand Down
1 change: 0 additions & 1 deletion src/com/gn/resources/css/theme/secondary.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
-gn-fill : white;
-fx-text-fill : white;
-fx-fill : white;
-fx-font-family: 'Roboto Medium';
}

.gn-buttons *:hover
Expand Down
1 change: 0 additions & 1 deletion src/com/gn/resources/css/theme/success.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
-gn-fill : white;
-fx-text-fill : white;
-fx-fill : white;
-fx-font-family: 'Roboto Medium';
}

.gn-buttons *:hover
Expand Down
1 change: 0 additions & 1 deletion src/com/gn/resources/css/theme/warning.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
-gn-fill : white;
-fx-text-fill : white;
-fx-fill : white;
-fx-font-family: 'Roboto Medium';
}

.gn-buttons *:hover
Expand Down

0 comments on commit 0c406a0

Please sign in to comment.