I have a CSS file to set styles in JavaFX TabPane
and Tab
.
Is there a way to set the TabPane
's background color and inherit Tab
background colors?
If I set the tab-content-area
background color, can I pick this up for the tab without having specifically nominate the color again?
.tab-content-area
{
-fx-background-color: #d9d9d9; /* I want to apply this color to tab background */
}
.tab:selected
{
-fx-background-color : -fx-something; <?? what do i put here??>
-fx-background-insets: 0, 1 1 0 1;
-fx-background-radius: 5 5 0 0, 4 4 0 0;
}