Created
July 7, 2015 22:18
-
-
Save ondrej-kvasnovsky/ad2c62c41d1906f242f7 to your computer and use it in GitHub Desktop.
Remove shadow from TextArea in JavaFX 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text-area { | |
-fx-background-insets: 0; | |
-fx-background-color: transparent, white, transparent, white; | |
-fx-background-radius: 0, 0, 0, 0; | |
-fx-box-border: none; | |
-fx-focus-color: -fx-control-inner-background; | |
-fx-faint-focus-color: -fx-control-inner-background; | |
-fx-text-box-border: -fx-control-inner-background; | |
-fx-border-width: -1; | |
} | |
.text-area .content { | |
-fx-background-color: transparent, white, transparent, white; | |
} | |
.text-area:focused .content { | |
-fx-background-color: transparent, white, transparent, white; | |
} | |
.scroll-pane { | |
} | |
.viewport { | |
-fx-background-insets: 0; | |
-fx-background-color: transparent, white, transparent, white; | |
-fx-background-radius: 0, 0, 0, 0; | |
-fx-focus-color: -fx-control-inner-background; | |
-fx-faint-focus-color: -fx-control-inner-background; | |
-fx-text-box-border: -fx-control-inner-background; | |
-fx-border-width: -1; | |
} | |
.content { | |
} | |
.text { | |
} | |
.text-area:focused { | |
-fx-highlight-fill: #7ecfff; | |
-fx-background-insets: 0; | |
-fx-background-color: transparent, white, transparent, white; | |
-fx-background-radius: 0, 0, 0, 0; | |
-fx-focus-color: -fx-control-inner-background; | |
-fx-faint-focus-color: -fx-control-inner-background; | |
-fx-text-box-border: -fx-control-inner-background; | |
-fx-border-width: -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment