Comment 4 for bug 165865

Revision history for this message
Buliabyak-users (buliabyak-users) wrote : Re: markers must take object color (SVG 1.2 feature)

<simarilius> need to sort making arrows match the line
color, been asked for a couple of times on the list
[12:23:45] <bbyak> this requires copying a marker and
painting it some color, then relinking the path to the new one
[12:23:59] <bbyak> and this also requires that all original
markers have no colors in them
[12:24:21] <bbyak> (anything without color is shown as black
by default)
[12:24:50] <bbyak> and each marker should also be one item
at the top level
[12:25:03] <bbyak> i.e. if it has several shapes, they
should be in group
[12:25:24] <simarilius> right, and if all the shapes below
that have no fill setting the group fill should mean they
inherit it right?
[12:25:25] <bbyak> then it's easy to automatically
add/change color on the top item to repaint the whole marker
[12:25:29] <bbyak> yes
[12:25:52] <simarilius> then just need to add a hook into
the line color change bit
[12:26:12] <bbyak> yes, but also copying, so that other
users of the marker are not affected
[12:26:48] <bbyak> and don't forget to make such auto-copied
markers auto-collectable
[12:27:02] <bbyak> so that they are removed when not used
[12:27:32] <bbyak> and they should also store a reference to
the original marker in some extension attr
[12:27:54] <bbyak> so that the list of markers in
fill&stroke would only show the black originals, not colored
copies
[12:28:40] <bbyak> it's similar to what is being done for
patterns, except that patterns chain on transform, while
markers on repaint
[12:29:43] <simarilius> I'll take a look at the patterns
code and see whats involved
[12:31:21] <bbyak> and so that when you select a shape with
copied/colored marker, the list in the dialog is updated to
show the source black marker
[12:31:33] <bbyak> having traced it by the reference in the
extension attr
[12:32:08] <bbyak> and ideally, when you select another
marker for a colored shape, it should be recolored into the
same color on assigning
[12:32:54] <bbyak> i.e. you select a blue stroke with blue
marker, the dialog shows that marker black, you select
another black one from the list, and it's applied blue not black

[12:36:00] <bbyak> simarilius: really svg makes this all
much harder than it should be :(
[12:36:06] <bbyak> but it's doable