sdrdis / jquery.flowchart

JQuery plugin that allows you to draw a flow chart.
http://sebastien.drouyer.com/jquery.flowchart-demo/
Other
508 stars 149 forks source link

How do I change the link hover color? #110

Closed ronaldoscotti closed 5 years ago

ronaldoscotti commented 5 years ago

Hi! First of all, thanks for the awesome plugin! :)

So, I wanted to change the colors of the link, for it to look good in a custom background that my flowchart container has. I was able to change the default and selected link color with defaultLinkColor: '#ddd', and defaultSelectedLinkColor: '#fff',, but I wasn't able to find a way to change the default dark blue color that the link has on hover.

Is there an way to do that?

ronaldoscotti commented 5 years ago

How I've solved:

In the jquery.flochart.js file there is a function called _shadeColor, that I think it should return a darker version of your link color. For some reason, in my case it was returning dark blue (wich is strange, since my links are white). So I've manually changed the return of that function to the hex of the color that I wanted.