<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1419349944534_7804">Well, shoot. I seem to have described Pd-l2ork's behavior. I'm not sure how Pd-extended is controlling its color scheme.</div><div dir="ltr" id="yui_3_16_0_1_1419349944534_7801"><br>-Jonathan</div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, December 23, 2014 5:55 AM, Alessio Degani <alessio.degani@ymail.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv2596828928"><div>
<div class="yiv2596828928moz-cite-prefix">Hi Johnathan, and list.<br clear="none">
<br clear="none">
Thank you for your reply.<br clear="none">
<br clear="none">
I've checked the code for some of the sys_vgui calls by comparing
vanilla ones with the one of extended.<br clear="none">
It seems that the code is the same.<br clear="none">
<br clear="none">
For example, the g_numberbox.c use sys_vgui call to draw the
rectangle and text, but on vanilla and extended is the very same
code:<br clear="none">
<br clear="none">
<div align="left">sys_vgui(<br clear="none">
".x%lx.c create line %d %d %d %d %d %d -fill #%6.6x -tags
%lxBASE2\n",<br clear="none">
canvas, xpos, ypos,<br clear="none">
xpos + half, ypos + half,<br clear="none">
xpos, ypos + x->x_gui.x_h,<br clear="none">
x->x_gui.x_fcol, x);<br clear="none">
sys_vgui(".x%lx.c create text %d %d -text {%s} -anchor w \<br clear="none">
-font {{%s} -%d %s} -fill #%6.6x -tags [list %lxLABEL label
text]\n",<br clear="none">
canvas, xpos+x->x_gui.x_ldx, ypos+x->x_gui.x_ldy,<br clear="none">
strcmp(x->x_gui.x_lab->s_name,
"empty")?x->x_gui.x_lab->s_name:"",<br clear="none">
x->x_gui.x_font, x->x_gui.x_fontsize, sys_fontweight,<br clear="none">
x->x_gui.x_lcol, x);<br clear="none">
<br clear="none">
I think that the -fill parameter is the one responsible of the
color, but is the same both for vanilla and extended.<br clear="none">
<br clear="none">
I've also checked the code in s_intern.c (the place where
sys_vgui is defined), and there are no difference between
vanilla and extended.<br clear="none">
<br clear="none">
Any idea?<br clear="none">
<br clear="none">
Thank you<br clear="none">
<br clear="none">
Alessio<br clear="none">
</div>
<br clear="none">
<br clear="none">
On 23/12/2014 01:14, Jonathan Wilkes wrote:<br clear="none">
</div>
<div class="yiv2596828928yqt9681363684" id="yiv2596828928yqt48046"><blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_6182">It's been
awhile sinceI looked, but I _think_ Pd-extended also refers to
those tcl variables in the sys_vgui code on the C side. So
the sys_vgui string responsible for, say, creating a rectangle
on a canvas will give it the outline color of
"$::box_outline".</div>
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_11290"><br clear="none">
</div>
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_11291">Check
g_text.c and the iemgui code for sys_vgui statements. I think
in many cases Pd Vanilla simply doesn't specify the colors, so
the box and xlets default to black.</div>
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_11295"><br clear="none">
</div>
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_11296">Btw--
Pd-l2ork has a little gui dialog where you can choose
different presets, or even define your own color schemes.</div>
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_11297"><br clear="none">
</div>
<div dir="ltr" id="yiv2596828928yui_3_16_0_1_1419293211613_11298">-Jonathan<br clear="none">
</div>
<div class="yiv2596828928qtdSeparateBR"><br clear="none">
<br clear="none">
</div>
<div class="yiv2596828928yahoo_quoted" style="display:block;">
<div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr"> <font face="Arial" size="2"> On Monday,
December 22, 2014 5:31 PM, Alessio Degani
<a rel="nofollow" shape="rect" class="yiv2596828928moz-txt-link-rfc2396E" ymailto="mailto:alessio.degani@ymail.com" target="_blank" href="mailto:alessio.degani@ymail.com"><alessio.degani@ymail.com></a> wrote:<br clear="none">
</font> </div>
<br clear="none">
<br clear="none">
<div class="yiv2596828928y_msg_container">Hi list,<br clear="none">
<br clear="none">
I would like to try to change pd-vanilla patch rendering
in order to <br clear="none">
obtain something like pd-extended rendering.<br clear="none">
<br clear="none">
I've cloned the latest pd-vanilla GIT repo and I've
started to look at <br clear="none">
the src in order to figure out how to do that.<br clear="none">
After some search, it seems that all what I need is in
the tcl stuff. <br clear="none">
I've googled it and it seems that I'm right, or am I
wrong?? (perhaps <br clear="none">
I've should start from here :D ).<br clear="none">
<br clear="none">
First of all, I've tested the build procedure. It was
ok. I've tested <br clear="none">
pd-vanilla *without installing it*:<br clear="none">
cd src<br clear="none">
./pd<br clear="none">
<br clear="none">
I've got an error: " ... pd-gui.tcl": no such file or
directory. I've <br clear="none">
resolved:<br clear="none">
cd src<br clear="none">
ln -s ../tcl<br clear="none">
<br clear="none">
Now, pd works.<br clear="none">
<br clear="none">
Then, I've tried to modify some simple elements in order
to check if I <br clear="none">
can see the effect. I've added some stuff in the
"init_for_platform" {}<br clear="none">
<br clear="none">
Here is the stuff that I've added:<br clear="none">
<br clear="none">
# color scheme<br clear="none">
set ::canvas_fill "#303030"<br clear="none">
set ::text_color "#ff0000"<br clear="none">
set ::select_color "#ff7200"<br clear="none">
set ::dash_outline "#008800"<br clear="none">
set ::dash_fill "#000055"<br clear="none">
set ::box_outline "#888888"<br clear="none">
set ::graph_outline "#888888"<br clear="none">
set ::atom_box_fill "#555555"<br clear="none">
set ::msg_box_fill "#555555"<br clear="none">
set ::obj_box_fill "#550000"<br clear="none">
set ::signal_cord_highlight "#fff600"<br clear="none">
#set ::signal_cord "#00868a"<br clear="none">
#set ::signal_nlet $signal_cord<br clear="none">
set ::msg_cord_highlight "#fff600"<br clear="none">
set ::msg_cord "#ff3e8a"<br clear="none">
set ::msg_nlet "#ff3e8a"<br clear="none">
set :mixed_nlet "#88aaff"<br clear="none">
<br clear="none">
But when I stat pd, it seems that this modification has
no effect.<br clear="none">
<br clear="none">
What I've missed?<br clear="none">
<br clear="none">
Thank you<br clear="none">
<br clear="none">
Alessio<br clear="none">
<br clear="none">
_______________________________________________<br clear="none">
<a href="" rel="nofollow" shape="rect" class="yiv2596828928removed-link">Pd-list@lists.iem.at</a>
mailing list<br clear="none">
UNSUBSCRIBE and account-management -> <a href="" rel="nofollow" shape="rect" class="yiv2596828928removed-link">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">
<br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
</blockquote></div>
<br clear="none">
<br clear="none">
<pre class="yiv2596828928moz-signature">--
a.</pre>
</div></div><br><br></div> </div> </div> </div> </div></body></html>