<div style="color:black;font: 10pt arial;">
<div><span style="font-family: helvetica, arial; font-size: 10pt;">well, the way that the tk handles this kind of thing is generally the "options" database.</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;">The way you would do it with this pr would be to set the colors using a .tcl file in the pd path, which hypothetically already has system, user, and app-specific paths.</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;">It wouldn't be any more complex than any other kind of "configuration" file (see the last uncommented part of doc/7.stuff/colors-plugin.txt for an example. saved with the extension .tcl and put into the pd path this acts to set the various colors to override the defaults)</span></div>
<span style="font-family: helvetica, arial; font-size: 10pt;">
<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;">I suppose I'm not sure what you're after.. if you want some kind of system-wide configuration/theme to apply to the colors then you might be able to do it with tcl options and xrdb, and on windows and mac there exist tk color names to access system themes.</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;">Otherwise, if you want app-specific configuration files/paths for colors then the .tcl plugin file in conjunction with the standard pd paths is pretty much that. (not sure about load order though)</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;">so the way to override the default colors is to put a -plugin.tcl file in the pd path, not change the values in pd-gui.tcl</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;">-seb</span></div>

<div><span style="font-family: helvetica, arial; font-size: 10pt;"><br>
</span></div>
-----Original Message-----</span><br>

<div style="font-family:helvetica,arial;font-size:10pt;color:black">From: Andre Osku Schmidt <andre@osku.de><br>
Sent: Sun, Jan 3, 2021 3:59 am<br>
<br>

<div dir="ltr">On Sun, 3 Jan 2021 04:55:07 +0000 (UTC)<br clear="none">Sebastian Shader <<a shape="rect" ymailto="mailto:sebfumaster@aol.com" href="mailto:sebfumaster@aol.com">sebfumaster@aol.com</a>> wrote:<br clear="none"><br clear="none">> Idk that much about x11 but on aqua and windows there are colors like systemHighlight that correspond to system theme colors.<br clear="none">> I think on x11 the way to do it might be through setting .Xresources/.Xdefaults and xrdb<br clear="none"><br clear="none">i know that we can set new names (for colors) in xrdb, but can we do it on osx and ms-windows?<br clear="none">(i doubt a general theme will have enough colors/names for all use-cases, so we need new names)<br clear="none"><br clear="none">i know that we can use multiple files with xrdb, but can we do it on osx and ms-windows?<br clear="none">(the bigger (as in scope) a file grows, the harder it gets to manage it)<br clear="none"><br clear="none">but xrdb is sadly only used by old/legacy apps and almost no new app since a long while now uses it...<br clear="none"><br clear="none">therefor i was planning on doing the "compromise standard", that every app/toolkit has its own theme/color/config file and the app manages its handling. so for pd, something like:<br clear="none"><br clear="none">- system: /etc/xdg/pd/colors.file<br clear="none">  - (and the same on other operatingsystem, if they have such standard paths)<br clear="none">- user: ~/.config/pd/colors.file<br clear="none">  - (and the same on other operatingsystem, if they have such standard paths)<br clear="none"><br clear="none">and the load order would be the "standard" (latter overwrites previous):<br clear="none"><br clear="none">1. app defaults<br clear="none">2. system config<br clear="none">3. user config<br clear="none">4. (in case of pd: colors set in pd-patch?)<br clear="none"><br clear="none">if this feature is not needed/wanted in vanilla pd, then i would like the included/default colors in pd to be in an own file (instead in pd-gui.tcl) so i can simply overwrite that file in my system after installing pd package. :P<br clear="none"><br clear="none">but in any case, thank you for doing all the hard work to get custom colors in pd!<br clear="none">(that white pd-patch background was blowing my eyes in my dim-lit studio)
<div class="yqt6894909305" id="yqtfd75745"><br clear="none"><br clear="none">cheerio<br clear="none">.oskude</div>
<br clear="none"><br clear="none">ps. on a funny side-note, i am experimenting to see if i can (as in will it be feasible to me) color my whole linux system (from linux console to last app) with just 8(16) colors (cause thats the default of linux console) :D</div>
</div>
</div>