Which kind of LookupItemIcon?

6 views
Skip to first unread message

Dennis Albrecht

unread,
Oct 9, 2014, 8:35:54 PM10/9/14
to kave...@googlegroups.com
Hey guys,

I just invested some time to check out which possibilities we have to somehow decorate the existing LookupItem's icon. Basically it's very simple using a given composite. In my ad-hoc test I just gave the Icon a golden background. But I'm not sure if this would already fulfil your idea of defining some eye-catching icon.


Just to give you an impression of what we could do (there is also the possibility to animate the icon, but I wouldn't recommend animations because this is uncommon for LookupItems):
  • define a coloured background
  • use a (resource) image-file as overlay (the documentation is quiet bad, if we choose this one, I have to test around with the file-format, pic's size and so on, because there are no explicit hints)
  • use some kind of C#-Canvas to paint our own "overlay-icon" (System.Windows.Media.Drawing)

Except the second one they are all either trivial to use or quiet well documented (the Canvas isn't a specific R#-class but a common .net-class)

Any preferences?

Greets Dennis

Sven Amann

unread,
Oct 10, 2014, 3:10:04 AM10/10/14
to Dennis Albrecht, kave...@googlegroups.com
Hi Dennis,

thanks for your investigations. In fact, I really like the “golden” icon you added. At least it’s a very good start. I don’t think we need any more general solution (like overlays) for now, as we only recommend method calls. If we extend this dimension of our tool, we can still think about whether it’s worth to do that. What do you think, Sebastian?

Best,
Sven

On 10.10.2014, at 02:35, Dennis Albrecht <dennis.alb...@gmail.com> wrote:

> Hey guys,
>
> I just invested some time to check out which possibilities we have to somehow decorate the existing LookupItem's icon. Basically it's very simple using a given composite. In my ad-hoc test I just gave the Icon a golden background. But I'm not sure if this would already fulfil your idea of defining some eye-catching icon.
>
>
>
>
> Just to give you an impression of what we could do (there is also the possibility to animate the icon, but I wouldn't recommend animations because this is uncommon for LookupItems):
> • define a coloured background
> • use a (resource) image-file as overlay (the documentation is quiet bad, if we choose this one, I have to test around with the file-format, pic's size and so on, because there are no explicit hints)
> • use some kind of C#-Canvas to paint our own "overlay-icon" (System.Windows.Media.Drawing)
> Except the second one they are all either trivial to use or quiet well documented (the Canvas isn't a specific R#-class but a common .net-class)
>
> Any preferences?
>
> Greets Dennis
>
>
> --
> You received this message because you are subscribed to the Google Groups "kave-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kave-dev+u...@googlegroups.com.
> To post to this group, send email to kave...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/kave-dev/35722d3c-d1fe-4df4-8c27-ee9d1094a0fe%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Sebastian Proksch

unread,
Oct 10, 2014, 4:00:46 AM10/10/14
to kave...@googlegroups.com, dennis.alb...@gmail.com
I totally agree with Sven, I think for now the golden background is already a very reasonable solution.

Said that, I'm still interested in another technical concern: Is it possible to completely replace the existing icon? As far as I understood it, all suggested solutions are just adornments of the existing one...

best
Sebastian

Dennis Albrecht

unread,
Oct 10, 2014, 10:45:18 AM10/10/14
to kave...@googlegroups.com, dennis.alb...@gmail.com
The mentioned options were all based on the idea of "decorating" the existing one because I remembered that this was your intention (keep the main icon to keep the association with "it's a method"). In fact, we could totally ignore the existing one and use any icon that we create (eg programmatically or as a picture).

Greets Dennis
Reply all
Reply to author
Forward
0 new messages