11package edu .wpi .grip .ui ;
22
33import javafx .fxml .FXML ;
4+ import javafx .scene .Cursor ;
5+ import javafx .scene .Parent ;
46import javafx .scene .input .MouseEvent ;
57import javafx .scene .paint .Color ;
68import javafx .scene .shape .Rectangle ;
@@ -13,6 +15,9 @@ public class AboutDialogController {
1315 @ Inject
1416 private Main main ;
1517
18+ @ FXML
19+ private Parent root ;
20+
1621 @ FXML
1722 private Text versionNumberText ;
1823
@@ -34,24 +39,28 @@ public class AboutDialogController {
3439 void mouseEnteredDocumentationButton (MouseEvent event ) {
3540 documentationRectangle .setFill (Color .GRAY );
3641 documentationText .setFill (Color .WHITE );
42+ root .getScene ().setCursor (Cursor .HAND );
3743 }
3844
3945 @ FXML
4046 void mouseEnteredGithubButton (MouseEvent event ) {
4147 githubRectangle .setFill (Color .GRAY );
4248 githubText .setFill (Color .WHITE );
49+ root .getScene ().setCursor (Cursor .HAND );
4350 }
4451
4552 @ FXML
4653 void mouseExitedDocumentationButton (MouseEvent event ) {
4754 documentationRectangle .setFill (CLEAR_COLOR );
4855 documentationText .setFill (Color .BLACK );
56+ root .getScene ().setCursor (Cursor .DEFAULT );
4957 }
5058
5159 @ FXML
5260 void mouseExitedGithubButton (MouseEvent event ) {
5361 githubRectangle .setFill (CLEAR_COLOR );
5462 githubText .setFill (Color .BLACK );
63+ root .getScene ().setCursor (Cursor .DEFAULT );
5564 }
5665
5766 @ FXML
0 commit comments