11package edu .wpi .grip .ui ;
22
33import javafx .fxml .FXML ;
4- import javafx .scene .Cursor ;
5- import javafx .scene .Parent ;
64import javafx .scene .input .MouseEvent ;
7- import javafx .scene .paint .Color ;
8- import javafx .scene .shape .Rectangle ;
95import javafx .scene .text .Text ;
106
117import javax .inject .Inject ;
@@ -15,54 +11,9 @@ public class AboutDialogController {
1511 @ Inject
1612 private Main main ;
1713
18- @ FXML
19- private Parent root ;
20-
2114 @ FXML
2215 private Text versionNumberText ;
2316
24- @ FXML
25- private Rectangle githubRectangle ;
26-
27- @ FXML
28- private Text githubText ;
29-
30- @ FXML
31- private Rectangle documentationRectangle ;
32-
33- @ FXML
34- private Text documentationText ;
35-
36- private static final Color CLEAR_COLOR = new Color (0.0 , 0.0 , 0.0 , 0.0 );
37-
38- @ FXML
39- void mouseEnteredDocumentationButton (MouseEvent event ) {
40- documentationRectangle .setFill (Color .GRAY );
41- documentationText .setFill (Color .WHITE );
42- root .getScene ().setCursor (Cursor .HAND );
43- }
44-
45- @ FXML
46- void mouseEnteredGithubButton (MouseEvent event ) {
47- githubRectangle .setFill (Color .GRAY );
48- githubText .setFill (Color .WHITE );
49- root .getScene ().setCursor (Cursor .HAND );
50- }
51-
52- @ FXML
53- void mouseExitedDocumentationButton (MouseEvent event ) {
54- documentationRectangle .setFill (CLEAR_COLOR );
55- documentationText .setFill (Color .BLACK );
56- root .getScene ().setCursor (Cursor .DEFAULT );
57- }
58-
59- @ FXML
60- void mouseExitedGithubButton (MouseEvent event ) {
61- githubRectangle .setFill (CLEAR_COLOR );
62- githubText .setFill (Color .BLACK );
63- root .getScene ().setCursor (Cursor .DEFAULT );
64- }
65-
6617 @ FXML
6718 void mousePressedDocumentationButton (MouseEvent event ) {
6819 main .getHostServices ().showDocument ("http://wpilib.screenstepslive.com/s/4485/m/50711" );
@@ -76,10 +27,6 @@ void mousePressedGithubButton(MouseEvent event) {
7627 @ FXML
7728 void initialize () {
7829 assert versionNumberText != null : "fx:id=\" versionNumberText\" was not injected: check your FXML file 'AboutDialog.fxml'." ;
79- assert githubRectangle != null : "fx:id=\" githubRectangle\" was not injected: check your FXML file 'AboutDialog.fxml'." ;
80- assert githubText != null : "fx:id=\" githubText\" was not injected: check your FXML file 'AboutDialog.fxml'." ;
81- assert documentationRectangle != null : "fx:id=\" documentationRectangle\" was not injected: check your FXML file 'AboutDialog.fxml'." ;
82- assert documentationText != null : "fx:id=\" documentationText\" was not injected: check your FXML file 'AboutDialog.fxml'." ;
8330
8431 versionNumberText .setText ("Version " + edu .wpi .grip .core .Main .class .getPackage ().getImplementationVersion ());
8532 }
0 commit comments