JavaFX CSS Remove blue border from window

This blue appears around the edges of a window whenever that window has focus, and I want to get rid of it/style it another color.

enter image description here

Doing some research, it seems that the following code is the agreed upon solution for other nodes, but does not appear to work on the window as a whole.

.root{
    -fx-focus-color: transparent !important;
    -fx-faint-focus-color: transparent !important;
}

1 answer

  • answered 2019-11-08 14:16 Brandon Loehle

    Turns out this color is the accent color of Windows 10, and has nothing to do with JavaFX. Oh well, guess it will have to stay.