Change TabPane ripple color from CSS
Hello,
How do I change the TabPane ripple color from CSS ? I looked at the Java code and the rippler has no id nor class associated with it, so I don't think I can link it from the CSS... I saw the -fx-ripple-color property but it doesn't seem to work wherever I put it.
well the property is -fx-rippler-fill not -fx-rippler-color, here is an example of how to change the JFXTabPane rippler color:
.jfx-tab-pane .tab-header-area .jfx-rippler{
-jfx-rippler-fill:RED;
}
It works, thanks!
need css for JFXTabpane
change slider color on selected tab and also change the background color of tab pane by background like this
idk why this isnt working for me. I put a usual tab from the builder to jfx tab pane
For the background color of tab pane , try this:
.jfx-tab-pane .headers-region { -fx-background-color: black; }
.jfx-tab-pane .tab-header-background { -fx-background-color: black;
For changing the slider color on selected tab that's my BIG problem. I'm using jfoenix 1.7.0 and i tried everything that i could remember so far... and nothing! :(((( If someone could give me some tips i really apreciate.
Hello, you can change the slider and rippler color using the following css:
.jfx-tab-pane .tab-selected-line {
-fx-stroke: #color;
}
.jfx-tab-pane .tab-header-area .jfx-rippler {
-jfx-rippler-fill: #color;
}
Regards,
Yes, but "-fx-stroke" doesn't work in the v1.7.0 !
i tried a few minutes ago:
.jfx-tab-pane .tab-selected-line { -fx-border-color: red; }
and it worked. I still didn't found out how to change the Tabs labels color.