How i can remove the default yellow color(line and focused color ) from tabs .I tried this code but it does not working for me :
.jfx-tab-pane .tab-selected-line {
-fx-stroke: #75bc1b;
-fx-stroke-width: 3pt;
}
Hello, You can try this:
.jfx-tab-pane .tab-selected-line {
-fx-background-color: #75bc1b;
-fx-pref-height: 4px;
}
Thanks, @GreenLv .
@XlintXms, here's a pro-tip: check out jfx-tab-pane.css to see the default styles for JFXTabPane.
You can override anything you see there by including it in your own stylesheet. :metal:
Most helpful comment
Hello, You can try this:
.jfx-tab-pane .tab-selected-line { -fx-background-color: #75bc1b; -fx-pref-height: 4px; }