![](https://secure.gravatar.com/avatar/91648e5ef9a75ac06f42131243ddee14.jpg?s=120&d=mm&r=g)
I was just trying to draw a line and place markers either at the beginning or end. What I noticed is that irrespective of the color I choose for the stroke, the marker would always be black. Is there a way to change it? Can somebody give some pointers to this? I am attaching a test file with this mail.
Regards,
![](https://secure.gravatar.com/avatar/0d48ea0427c21a53b2a5492062656195.jpg?s=120&d=mm&r=g)
inkscape-user-admin@lists.sourceforge.net wrote on 24/01/2006 12:46:56 PM:
I was just trying to draw a line and place markers either at the beginning or end. What I noticed is that irrespective of the color I choose for the stroke, the marker would always be black. Is there a way to change it? Can somebody give some pointers to this? I am attaching a test file with this mail.
There is currently no way to do this, the markers are always black. (and are shared by your various lines).
The only way I could find around it was to place my own markers on the end of the line, and group them to the line. It's quite quick if you draw all your lines first, then create a end-pointer and copy it to all the end-of-lines you want as arrows/whatever. Remember to group the pointer with the line.
Incidently I tried to edit the XML and change the colours of the pointers, but I couldn't get it to work, and besides needed more than one colour of pointer.
hope this helps, -kt
--
Please consider our environment before printing this email.
WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
Westpac Banking Corporation ABN 33 007 457 141.
![](https://secure.gravatar.com/avatar/84524eb6e916f5d548e7c7c0e41fd127.jpg?s=120&d=mm&r=g)
See:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch11s03.html#id2773282
There is a complication: Apply the fill color attribute to the marker id, not the path id. The change should be immediate. However, if the path object has defined fill or stroke color, you must change that (can be removed after adding color attribute to marker) and then save, close, and reopen the file to see the change.
If your rename the marker (necessary if you want versions with different colors) you must also save, close, and reopen the file.
This will be clarified in the next version of the manual.
Tav
On Tue, 2006-01-24 at 13:01 +1100, Kinsley Turner wrote:
inkscape-user-admin@lists.sourceforge.net wrote on 24/01/2006 12:46:56 PM:
I was just trying to draw a line and place markers either at the beginning or end. What I noticed is that irrespective of the color I choose for the stroke, the marker would always be black. Is there a way to change it? Can somebody give some pointers to this? I am attaching a test file with this mail.
There is currently no way to do this, the markers are always black. (and are shared by your various lines).
The only way I could find around it was to place my own markers on the end of the line, and group them to the line. It's quite quick if you draw all your lines first, then create a end-pointer and copy it to all the end-of-lines you want as arrows/whatever. Remember to group the pointer with the line.
Incidently I tried to edit the XML and change the colours of the pointers, but I couldn't get it to work, and besides needed more than one colour of pointer.
hope this helps, -kt
--
Please consider our environment before printing this email.
WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
Westpac Banking Corporation ABN 33 007 457 141.
![](https://secure.gravatar.com/avatar/91648e5ef9a75ac06f42131243ddee14.jpg?s=120&d=mm&r=g)
On Tue, Jan 24, 2006 at 08:37:07AM +0100, Tavmjong Bah wrote:
See:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch11s03.html#id2773282
There is a complication: Apply the fill color attribute to the marker id, not the path id. The change should be immediate. However, if the path object has defined fill or stroke color, you must change that (can be removed after adding color attribute to marker) and then save, close, and reopen the file to see the change.
Thanks. That solved the problem.
This will be clarified in the next version of the manual.
Fine. But, can it not be simplified so that by default, the marker takes on the color of the stroke?
Regards,
![](https://secure.gravatar.com/avatar/650e8f686572eb00b7b445fe657f222a.jpg?s=120&d=mm&r=g)
--- "Sridhar M.A." <mas@...1506...> wrote:
On Tue, Jan 24, 2006 at 08:37:07AM +0100, Tavmjong Bah wrote:
See:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch11s03.html#id2773282
There is a complication: Apply the fill color attribute to the
marker
id, not the path id. The change should be immediate. However, if
the
path object has defined fill or stroke color, you must change
that (can
be removed after adding color attribute to marker) and then
save, close,
and reopen the file to see the change.
Thanks. That solved the problem.
This will be clarified in the next version of the manual.
Fine. But, can it not be simplified so that by default, the marker takes on the color of the stroke?
Nope, cos the SVG spec says that markers shouldnt inherit style info. Stupid, but thats how it is.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
![](https://secure.gravatar.com/avatar/43240114e59ed23edc437c762a4fe14a.jpg?s=120&d=mm&r=g)
John Cliff wrote:
--- "Sridhar M.A." <mas@...1506...> wrote:
On Tue, Jan 24, 2006 at 08:37:07AM +0100, Tavmjong Bah wrote:
See:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch11s03.html#id2773282
There is a complication: Apply the fill color attribute to the
marker
id, not the path id. The change should be immediate. However, if
the
path object has defined fill or stroke color, you must change
that (can
be removed after adding color attribute to marker) and then
save, close,
and reopen the file to see the change.
Thanks. That solved the problem.
This will be clarified in the next version of the manual.
Fine. But, can it not be simplified so that by default, the marker takes on the color of the stroke?
Nope, cos the SVG spec says that markers shouldnt inherit style info. Stupid, but thats how it is.
Isn't there a potential solution though? Wouldn't making it applied directly to the marker vs inheriting style from the stroke be doable? Effectively, that way we're not writing it to inherit the style (ala css or whatever), but instead also writing the stroke color to the marker color as well (then it's not inherited since it's explicit). Does that make sense? And we could even throw a checkbox in the Stroke Style tab that would could be for "set marker color same as stroke color" (or something less wordy). We've seen this so many times now and I'd hope we could get around it by good UI. Any thoughts? Any reasons why this wouldn't be feasible?
-Josh
![](https://secure.gravatar.com/avatar/1fa3408864fb9341c38d2e55bd4d8fdd.jpg?s=120&d=mm&r=g)
Joshua A. Andler wrote:
Isn't there a potential solution though? Wouldn't making it applied directly to the marker vs inheriting style from the stroke be doable? Effectively, that way we're not writing it to inherit the style (ala css or whatever), but instead also writing the stroke color to the marker color as well (then it's not inherited since it's explicit). Does that make sense? And we could even throw a checkbox in the Stroke Style tab that would could be for "set marker color same as stroke color" (or something less wordy). We've seen this so many times now and I'd hope we could get around it by good UI. Any thoughts? Any reasons why this wouldn't be feasible?
That certainly could (and probably should) be done. But I think markers can be arbitrary SVG and may include many elements with various stroke and fill colors.
Aaron Spike
![](https://secure.gravatar.com/avatar/ec28e6e88d1c3123eccb064da18605fc.jpg?s=120&d=mm&r=g)
on Tuesday 24 January 2006 19:19 Joshua A. Andler wrote:
Isn't there a potential solution though? Wouldn't making it applied directly to the marker vs inheriting style from the stroke be doable? Effectively, that way we're not writing it to inherit the style (ala css or whatever), but instead also writing the stroke color to the marker color as well (then it's not inherited since it's explicit). Does that make sense? And we could even throw a checkbox in the Stroke Style tab that would could be for "set marker color same as stroke color" (or something less wordy). We've seen this so many times now and I'd hope we could get around it by good UI. Any thoughts? Any reasons why this wouldn't be feasible?
Great idea, I'd be glad if the marker-color-thing would be a bit easier!
Cheerz Lars
![](https://secure.gravatar.com/avatar/bb65b6b3a109d97cf9f8d6c014ede042.jpg?s=120&d=mm&r=g)
On 1/24/06, Joshua A. Andler <joshua@...233...> wrote:
Isn't there a potential solution though?
Yes. Not potential but the real compatible solution. It's in SVG 1.2 and just needs to be coded. Details in this bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=995815&grou...
While not yet implemented, can this information please be added to a FAQ, so that people don't have to reinvent workarounds?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
participants (8)
-
Aaron and Sarah Spike
-
bulia byak
-
John Cliff
-
Joshua A. Andler
-
Kinsley Turner
-
Lars Behrens
-
Sridhar M.A.
-
Tavmjong Bah