How to change the Arrows Colors?

Ask questions regarding general use of DHTML Chess
Post Reply
chessnagar
Posts: 25
Joined: Tue Feb 28, 2017 2:40 pm

How to change the Arrows Colors?

Post by chessnagar » Tue Mar 07, 2017 10:21 pm

Hi Alf:
Is it possible to change the color of the arrows without changing the template?

Thanks.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: How to change the Arrows Colors?

Post by alf » Wed Mar 08, 2017 12:57 am

Good point :)

I will start adding more config parameters(like arrow styling) tomorrow.

Alf

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: How to change the Arrows Colors?

Post by alf » Wed Mar 08, 2017 10:13 pm

I have added support for arrow stylings in the Plugin Setup page now.

Example:

"stroke-width:1;stroke:#FF0000;stroke-opacity:0.8;fill:#FF0000;fill-opacity:0.1"

It's basically a string with styling attributes separated by semicolon;

The arrows are rendered with SVG, so you have to use SVG styling attributes and not HTML styling attributes(example:stroke-width and not border-width). When a styling attribute is set, it will override the default stylings set by the themes.

I'm looking for a way to create your own themes in the plugin. When that is in place, I might remove this option later on.. just so you know :)

But until then, this config option is available.

chessnagar
Posts: 25
Joined: Tue Feb 28, 2017 2:40 pm

Re: How to change the Arrows Colors?

Post by chessnagar » Mon Mar 13, 2017 9:05 pm

Thanks, it is working. Now I can see the arrows in green :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest