I found a solution to the cursor not tracking the "current" color
(although it's probably not the most elegant possible it shouldn't do
any harm) and committed. There are still one or two rough edges, but
mostly it seems to work just fine:
- It doesn't handle an unset color gracefully. Ideally I'd like it to
use rgba(0,0,0,0) or, even fancier, track the (default) color of the
layer/group into which the shape would be drawn (giving the effective
color that would be drawn).
- It probably doesn't track changes to the tool's color made in the
preferences (if you use the "tool's color" instead of the last used
color), but since this discrepancy only lasts until you reselect the
tool and people probably tend to do this only very infrequently I don't
think this should be too problematic.
On 2010-09-04 22:45, Joshua Facemyer wrote:
I agree - this would be a welcome improvement. I realize this data
is
available elsewhere, but this solution would save time and trouble
looking for it, and help to avoid that "why is my new circle this
color?" confusion.
I'm happy to see that you've worked on a patch. If I get a chance, I'd
be happy to check this out on my work computer next week...
JF
On 09/03/2010 10:58 AM, Jasper van de Gronde wrote:
> On 2010-09-03 11:48, Aleksandar Kovac wrote:
>> ...
>>
>> So, one really simple solution for the 'user awareness' of the loaded
>> color would be to put the color indicator directly on the tool cursor.
>> even a small patch not bigger than 4*4px would give enough visual
>> feedback and get rid of a much bigger piece of screen somewhere else.
>> For example, when you take the rectangle tool, the cursor icon on the
>> lower right changes to indicate this tool choice, right? Why it wouldn't
>> indicate the color, too? So that you can see: a red circle, or a green
>> rectangle... It would be OK semantically, since the purpose of that
>> little icon by the cursor is 'reference'.
> > ...
>
> I actually liked this idea, as I've always been slightly surprised by
> the initial result whenever I start drawing something in Inkscape, and
> this would make that absolutely clear. So I've made an initial patch
> that implements this (if I missed a tool, it's easy to add one, just
> needs a small change to TOOL-context.cpp and some recoloring of
> cursor-TOOL.xpm).
>
> I'm interested in people's experiences, so I've attached a patch and
> uploaded a Windows build to:
>
http://home.hccnet.nl/th.v.d.gronde/inkscape-color-cursor.zip
> (just inkscape.exe, so backup your current inkscape.exe, extract the
> zip and your good to go)
>
> One of the main glitches it currently has is that the "preview"
> doesn't change if you select a different color (you have to reselect
> the tool). Any ideas on fixing that would be appreciated (just reply
> to the devel list only).
>
>
> ------------------------------------------------------------------------------
> This
SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
>
http://p.sf.net/sfu/intel-thread-sfd
>
>
> _______________________________________________
> Inkscape-devel mailing list
> Inkscape-devel(a)lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
>
------------------------------------------------------------------------------
This
SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Inkscape-user mailing list
Inkscape-user(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user