Css JavaFX-Can';t从标题窗格中删除箭头辉光

Css JavaFX-Can';t从标题窗格中删除箭头辉光,css,javafx,Css,Javafx,我已经检查了一些解决方案,如,和。还检查了(行1829),但当我单击标题窗格时(即,当它聚焦时),箭头始终保持发光,如下图所示(可能有点难以看到) 默认值聚焦 这是我的CSS: .titledPane { -fx-background-color: transparent; -fx-background-insets: 0; -fx-text-fill: white; } .titledPane > .title { -fx-background-color

我已经检查了一些解决方案,如,和。还检查了(行1829),但当我单击
标题窗格时(即,当它聚焦时),箭头始终保持发光,如下图所示(可能有点难以看到)

默认值聚焦

这是我的
CSS

.titledPane {
    -fx-background-color: transparent;
    -fx-background-insets: 0;
    -fx-text-fill: white;
}
.titledPane > .title {
    -fx-background-color: black;
    -fx-background-insets: 0;
    -fx-background-radius: 0;
}
.titledPane:focused > .title {
    -fx-background-color: black;
    -fx-background-insets: 0;
}
.titledPane > .title > .arrow-button > .arrow{
    -fx-background-color: white;
    -fx-background-insets: 0;
}
.titledPane:focused > .title > .arrow-button > .arrow{
    -fx-background-color: white;
    -fx-background-insets: 0;
}
.titledPane:collapsed > .title > .arrow-button > .arrow{
    -fx-background-color: white;
    -fx-background-insets: 0;
}
.titledPane > .content {
    -fx-background-color: white;
}

我还缺少什么其他设置?我有一个
GridPane
在它里面,如果它有什么不同的话。

可能这就是dropshadow效果。尝试
-fx效果:空在箭头上。顺便说一句:请注意,您可以分离规则并使用多个选择器,例如
.titledPane、.titledPane>.title、.titledPane>.title>.title>.arrow button>.arrow{-fx background insets:0;}
.titledPane>.content、.titledPane>.title>.arrow button>.arrow、.titledPane>.title>.title{-fx背景色:白色;}
.titledPane:focused>.title{-fx背景色:黑色;}
@fabian非常感谢<代码>-fx效果:空解决了它。如果你把它放在一个答案中,如果你愿意,我可以把它标记为解决方案。相关问题:。那里的一些答案非常古老,并且基于之前的JavaFX样式(Caspian vs Modena),因此那里提供的解决方案可能与您想要实现的目标无关。