paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Change waypoint name color


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] Change waypoint name color
Date: Thu, 31 Oct 2013 00:17:14 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Hi,

Finally I found why the green color is not as green as before: the definition of "green" is different for X11 and W3C.
http://en.wikipedia.org/wiki/X11_color_names
http://www.htmlcolorname.com/00ff00.html
http://www.htmlcolorname.com/008000.html

So for people with "dark" green, if the color is set to "lime" the resulting color is the expected one.

The problem is that I don't know how to tell to gtk/gdk/lablgtk(?) to use the X11 color map rather than the W3C. Any one with a good idea ?

Possible solutions:
- replace "green" with "lime" if it works for people having X11 colormap
- replace "green" with "green1" if it works for everyone
- replace "green" with "#00FF00" that is not user-friendly but should work

Concerning Piotr solution, it would be nice to avoid adding more elements to the canvas, but maybe it doesn't make a big difference in the end.

Gautier


Le 30/10/2013 19:22, Luis Carlos a écrit :
Hi Piotr..
i test you mod and the result it's in picture attached...
thank you




2013/10/30 Eduardo lavratti <address@hidden>
The bright green is correct on mine ubuntu but it steel difficult to read.
I like the modification proposed by Esden but i changed the white by yellow color.

Next week i will test in the field.




Date: Wed, 30 Oct 2013 15:46:52 +0100
From: address@hidden

To: address@hidden
Subject: Re: [Paparazzi-devel] Change waypoint name color

Thank you Luis,

So in the end, it looks like the real problem is a bit different: the green color is not the expected one. I have the same issue but I thought it was due to an ubuntu upgrade since it doesn't do the same on all the computers of my lab.
I already tried to find the source of the issue without sucess. If a set by hand the RGBA value for the green color a get the expected one, but if I use the string name "green" it doesn't. I can't tell if it is a gtk or lablgtk (the gtk-ocaml glue) issue.
So if anyone have an idea where to start, that would be welcome.

Gautier

Le 30/10/2013 13:07, Luis Carlos a écrit :
hi Gautier....its darker green...and you see in the picture of my gcs my location map it's very darked zone...now my label it,s red color...and i have very contrast to read the wp labels..

best regards
Luis





2013/10/30 Gautier Hattenberger <address@hidden>
Hi Luis,

Can you tell me what is the exact "green" color that you have: is it a bright green like this http://paparazzi.enac.fr/wiki/File:Gcs.jpg or is it something darker ?

Since latest ubuntu versions (kubuntu actually) I have some weird issue with the green which is not that green...

Thanks

Gautier

Le 30/10/2013 03:02, Luis Carlos a écrit :

Thank you Piotr...yes ....this is useful improvement....i test tomorrow and report ...
Best Regards...

Luis Carlos

El oct 29, 2013 9:15 p.m., "Piotr Esden-Tempski" <address@hidden> escribió:
Glad it works for you. I did a very quick modification to the gcs code to add contrast outlines to the GCS text labels. 

Let me know what you think:


I very likely missed something as it is a 15min hack. I will improve it if you say it is a useful improvement.

Cheers,
Piotr

On Oct 29, 2013, at 3:10 PM, Luis Carlos <address@hidden> wrote:

Thank you piotr...i follow your indication...change to red...make clean...make and color now is red
Luis Carlos
El 29/10/2013 18:52, "Luis Carlos" <address@hidden> escribió:
thank you piotr for your attention.....yes eduardo...i change the color..but i need to change the color of waypoint name...the name wp it's always green
Luis Carlos
El 29/10/2013 18:44, "Eduardo lavratti" <address@hidden> escribió:
Changing airframe color you change the waypoint color in map2d


From: address@hidden
Date: Tue, 29 Oct 2013 14:26:11 -0700
To: address@hidden
Subject: Re: [Paparazzi-devel] Change waypoint name color

Hi Luis,

As far as I can tell there is no global option to change the label color. You have to go and edit line 69 in sw/lib/ocaml/mapWaypoints.ml and change the FILL_COLOR attribute. I think a much better solution would be to find a way of adding a dark outline to the labels, by introducing for example a second label under the first one that is 2 points bigger or so in a different color. As the Gnocanvas.text object does not support the OUTLINE_COLOR attribute as far as I can tell.

Cheers,
Piotr

On Oct 29, 2013, at 1:50 PM, Luis Carlos <address@hidden> wrote:

hi to all.. It's possible to change the waypoint color name in gcs display in map2d? Because the green color it.s similar to vegetation and i need a better contrast for the name
Thank you 
Luis Carlos
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]