From a8a693296e2a466b7d78f3966dcf203be112e110 Mon Sep 17 00:00:00 2001 From: giavaphi Date: Sun, 11 Dec 2022 16:45:07 +0100 Subject: [PATCH] delete unused function --- .../zhaw/gartenverwaltung/MainFXMLController.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/ch/zhaw/gartenverwaltung/MainFXMLController.java b/src/main/java/ch/zhaw/gartenverwaltung/MainFXMLController.java index cc2ffb7..e351902 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/MainFXMLController.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/MainFXMLController.java @@ -56,7 +56,6 @@ public class MainFXMLController { @FXML void goToHome() { showPaneAsMainView("Home.fxml"); - styleChangeButton(home_button); } /** @@ -65,7 +64,6 @@ public class MainFXMLController { @FXML void goToMyPlants() { showPaneAsMainView("MyGarden.fxml"); - styleChangeButton(myGarden_button); } /** @@ -74,7 +72,6 @@ public class MainFXMLController { @FXML void goToMySchedule() { showPaneAsMainView("MySchedule.fxml"); - styleChangeButton(mySchedule_button); } /** @@ -160,15 +157,6 @@ public class MainFXMLController { appLoader.loadAndCacheFxml("Plants.fxml"); } - private void styleChangeButton(Button button) { - /*home_button.setStyle("-fx-background-color: rgb(0,128,0)"); - myGarden_button.setStyle("-fx-background-color: rgb(0,128,0)"); - mySchedule_button.setStyle("-fx-background-color: rgb(0,128,0)"); - settings_button.setStyle("-fx-background-color: rgb(0,128,0)"); - tutorial_button.setStyle("-fx-background-color: rgb(0,128,0)"); - button.setStyle("-fx-background-color: darkgreen");*/ - } - /** * loads the default FXML File * {@inheritDoc} @@ -179,7 +167,6 @@ public class MainFXMLController { try { preloadPanes(); showPaneAsMainView("MyGarden.fxml"); - styleChangeButton(myGarden_button); } catch (IOException e) { LOG.log(Level.SEVERE, "Failed to load FXML-Pane!", e); }