Skip to content
Snippets Groups Projects

Added a css folder

Merged Edvard Granheim Harbo requested to merge cssFolder into dev
4 files
+ 44
13
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -78,17 +78,20 @@ public class ExtraUserOptions extends VBox {
this.downButton = new Button("Down");
this.leftButton = new Button("Left");
this.rightButton = new Button("Right");
getStylesheets().add(getClass().getResource("/edu/ntnu/idatt2003/mappevurderingprog2/styles/extraUserOptions.css").toExternalForm());
this.getStyleClass().add("extra-user-options");
setupZoomButtons();
extraUserOptionsLabel();
Label rotationLabel = new Label("Rotate the view");
rotationLabel.setStyle("-fx-font-size: 14px; -fx-font-weight: bold;");
rotationLabel.getStyleClass().add("rotation-label");
Label zoomLabel = new Label("Zoom");
zoomLabel.setStyle("-fx-font-size: 14px; -fx-font-weight: bold;");
zoomLabel.getStyleClass().add("zoom-label");
Label navigateLabel = new Label("Navigate");
navigateLabel.setStyle("-fx-font-size: 14px; -fx-font-weight: bold;");
navigateLabel.getStyleClass().add("navigate-label");
HBox zoomControls = new HBox(zoomOutButton, zoomInButton);
zoomControls.setAlignment(Pos.CENTER);
@@ -213,7 +216,7 @@ public class ExtraUserOptions extends VBox {
* Applies styling properties to the extra user options panel.
*/
private void extraUserOptionsStyling() {
setStyle("-fx-background-color: #eed9c4;");
this.getStyleClass().add("extra-user-options");
}
/**
Loading