Schedule-Creator

Java GUI to create schedules for UNCG students
git clone git://git.wrycode.com/wrycode/archive/Schedule-Creator.git
Log | Files | Refs | README

commit 2c8b1636ff1561e83ba8a5849cb5000f1651ec3f
parent 5462490b23d0347037b73ae04d2edbc822feb800
Author: jamisonv93 <47033011+jamisonv93@users.noreply.github.com>
Date:   Mon, 20 Apr 2020 21:57:53 -0400

add comments (#68)


Diffstat:
MScheduleCreator/controllers/CoursesController.java | 7++-----
MScheduleCreator/controllers/PrimaryController.java | 17+++++++++++------
MScheduleCreator/resources/Darkmode.css | 8++++----
3 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/ScheduleCreator/controllers/CoursesController.java b/ScheduleCreator/controllers/CoursesController.java @@ -5,7 +5,7 @@ package ScheduleCreator.controllers; * * @author Jamison Valentine, Ilyass Sfar, Nick Econopouly, Nathan Tolodzieki * - * Last Updated: 4/13/2020 + * Last Updated: 4/20/2020 */ import ScheduleCreator.Adapter; import java.io.IOException; @@ -63,7 +63,7 @@ public class CoursesController implements Initializable { @FXML private ListView availableCourses, selectedCoursesListView, sectionListView; @FXML - private Button courseButton, removeCourseButton; + private Button removeCourseButton; @FXML private GridPane scheduleGridPane; @FXML @@ -72,8 +72,6 @@ public class CoursesController implements Initializable { private TabPane sectionTabPane; @FXML private VBox CRNContainer, CRNPane; - @FXML - private StackPane mainContent; // the following buttons are only here for the buttonSetup() method @FXML @@ -85,7 +83,6 @@ public class CoursesController implements Initializable { protected static Semester currentSemester; private Course focusedCourse; - private Course currentCourse; private Adapter adapter = new Adapter(); private int NUM_ROWS; diff --git a/ScheduleCreator/controllers/PrimaryController.java b/ScheduleCreator/controllers/PrimaryController.java @@ -5,7 +5,7 @@ package ScheduleCreator.controllers; * * @author Jamison Valentine * - * Last Updated: 4/19/2020 + * Last Updated: 4/20/2020 */ import com.sun.javafx.css.StyleManager; @@ -99,7 +99,7 @@ public class PrimaryController implements Initializable { /** * Highlight menu item when user mouses over it - * @param _event + * @param _event */ public void hoverItem(MouseEvent _event) { HBox item = (HBox) _event.getSource(); @@ -108,7 +108,7 @@ public class PrimaryController implements Initializable { /** * Unhighlight menu item when user mouses over it - * @param _event + * @param _event */ public void unhoverItem(MouseEvent _event) { HBox item = (HBox) _event.getSource(); @@ -117,23 +117,27 @@ public class PrimaryController implements Initializable { } /** - * Toggle visibility of menu with the toggleMenu ToggleButton - * @param _event + * Toggle visibility of menu with the toggleMenu ToggleButton. + * @param _event */ @FXML private void toggleMenu(ActionEvent _event) { + if (!this.showMenu) { this.mainBox.getColumnConstraints().get(0).setMaxWidth(200); this.menuBox.setVisible(true); this.showMenu = true; + this.toggleMenu.setText("Close"); } else { this.menuBox.setVisible(false); this.mainBox.getColumnConstraints().get(0).setMaxWidth(0); this.showMenu = false; + this.toggleMenu.setText("Menu"); } } /** + * Toggle darkMode css with the toggleDarkMode ToggleButton */ @FXML @@ -166,4 +170,4 @@ public class PrimaryController implements Initializable { System.out.println("Something went wrong"); } } -} +}+ \ No newline at end of file diff --git a/ScheduleCreator/resources/Darkmode.css b/ScheduleCreator/resources/Darkmode.css @@ -1,4 +1,4 @@ -.root { +.root { -fx-accent: #1e74c6; -fx-focus-color: -fx-accent; -fx-base: #373e43; @@ -27,7 +27,7 @@ -fx-text-fill: white; } -.separator *.line { +.separator *.line { -fx-background-color: #3C3C3C; -fx-border-style: solid; -fx-border-width: 1px; @@ -39,7 +39,7 @@ .button:default { -fx-base: -fx-accent ; -} +} .table-view{ /*-fx-background-color: derive(-fx-base, 10%);*/ @@ -54,7 +54,7 @@ .list-cell:even, .list-cell:odd, .table-row-cell:even, -.table-row-cell:odd{ +.table-row-cell:odd{ -fx-control-inner-background: derive(-fx-base, 15%); }