JFoenix icon indicating copy to clipboard operation
JFoenix copied to clipboard

Change TabPane ripple color from CSS

Open natinusala opened this issue 10 years ago • 7 comments

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.

natinusala avatar Jan 22 '16 10:01 natinusala

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;
}

jfoenixadmin avatar Jan 22 '16 11:01 jfoenixadmin

It works, thanks!

natinusala avatar Jan 25 '16 07:01 natinusala

need css for JFXTabpane

change slider color on selected tab and also change the background color of tab pane by background like this required

dhram2308 avatar Apr 13 '16 09:04 dhram2308

idk why this isnt working for me. I put a usual tab from the builder to jfx tab pane

bobnathanzeonbe avatar Jun 14 '17 08:06 bobnathanzeonbe

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.

peteralien avatar Aug 25 '17 18:08 peteralien

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,

jfoenixadmin avatar Aug 25 '17 19:08 jfoenixadmin

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.

peteralien avatar Aug 25 '17 21:08 peteralien