javafx-2, remove focus highlighting via CSS -
I want to delete the blue border which focuses the tableview when this focus is on.
I checked in caspian.css, that most components like buttons and textfield do something like this:
.table-view: focus {-fx-background-color: -fx-focus -color, -fx-box-border, - fx-control-inner background; -fx-background-insets: -1.4, 0, 1; -fx- background-radius: 1.4, 0, 0; / *** / -fx-padding: 1; / * 0.083333em; * /} My question is on CSS, in the end. Can I override this pseudonym specification in my stylesheet instead of trying to change colors to transparent?
Yes you can do it in your stylesheet with the JavaFX CSS properties of your choice The same CSS selector defines:
.table-view: focus {-fx-background-color: red / * or transparent or other favorite color * /, - fx-box -border, -fx-control-inner-background; -fx-background-insets: -1.4, 0, 1; -fx- background-radius: 1.4, 0, 0; / *** / -fx-padding: 1; / * 0.083333em; * /}
Comments
Post a Comment