Skip to content
Snippets Groups Projects
Commit 4419ff40 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #184 - Controller buttons hover effect

parent 6c5998a0
No related branches found
No related tags found
1 merge request!213merge v1_6_0 into master
...@@ -181,10 +181,18 @@ public class Controller extends BaseController ...@@ -181,10 +181,18 @@ public class Controller extends BaseController
anchorPaneMain.setStyle("-fx-background-color: " + ConvertTo.toRGBHexWithoutOpacity(Colors.BACKGROUND_MAIN)); anchorPaneMain.setStyle("-fx-background-color: " + ConvertTo.toRGBHexWithoutOpacity(Colors.BACKGROUND_MAIN));
labelMonth.setStyle("-fx-text-fill: " + ConvertTo.toRGBHexWithoutOpacity(Colors.TEXT)); labelMonth.setStyle("-fx-text-fill: " + ConvertTo.toRGBHexWithoutOpacity(Colors.TEXT));
labelNotification.setStyle("-fx-text-fill: #FFFFFF; -fx-font-size: 16; -fx-font-weight: bold; -fx-background-color: transparent;"); labelNotification.setStyle("-fx-text-fill: #FFFFFF; -fx-font-size: 16; -fx-font-weight: bold; -fx-background-color: transparent;");
buttonLeft.setStyle("-fx-background-color: transparent;"); buttonLeft.setStyle("-fx-background-color: transparent;");
buttonLeft.getStyleClass().add("button-hoverable");
buttonRight.setStyle("-fx-background-color: transparent;"); buttonRight.setStyle("-fx-background-color: transparent;");
buttonRight.getStyleClass().add("button-hoverable");
buttonToday.setStyle("-fx-background-color: transparent;"); buttonToday.setStyle("-fx-background-color: transparent;");
buttonToday.getStyleClass().add("button-hoverable");
buttonAbout.setStyle("-fx-background-color: transparent;"); buttonAbout.setStyle("-fx-background-color: transparent;");
buttonAbout.getStyleClass().add("button-hoverable");
if(!settings.isComplete()) if(!settings.isComplete())
{ {
......
...@@ -87,3 +87,8 @@ ...@@ -87,3 +87,8 @@
.color-picker .arrow-button{ .color-picker .arrow-button{
-fx-opacity: 0; -fx-opacity: 0;
} }
.button-hoverable:hover{
-fx-opacity: 0.6;
-fx-cursor: hand;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment