-
-
Save juxtenberg/5e6dd357bdf3098c89cf975ffda89551 to your computer and use it in GitHub Desktop.
Remove shadow from TextArea in JavaFX 8
This file contains 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