JavaFX Checkbox Styling using CSS


/* Checkbox */
.check-box {
-fx-text-fill: #65686e;
-fx-font-weight: normal;
-fx-font-size: 14px;
-fx-cursor: hand;
-fx-opacity: 0.95;
}

.check-box:hover {
-fx-text-fill: #505257;
-fx-cursor: hand;
-fx-opacity: 1.0;
}

.check-box .box {
-fx-background-color: transparent;
-fx-border-color: #65686e;
-fx-border-radius: 4;
}

.check-box:selected .mark {
-fx-background-color: white;
}

.check-box:selected .box {
-fx-background-color: #1D5EFE;
}







Comments

Popular posts from this blog

How to add borders to HBox using CSS - JAVAFX