Re: Changing vanilla colors

Andrew Lyons <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <CAF3KZat1Sszm6Kj2dbT0hZsrhOBzYsOmwVq4AwRc1tbz2i_64g@mail.gmail.com>
Good to see there's a plan in gestation. I may well check out pdnext, but
for now, I managed to change the white background to gray30. That has
helped.

Some grep output:

tcl/pdwindow.tcl:336:        .pdwindow.tcl.entry configure -background
"gray30"
tcl/pdwindow.tcl:407:    option add *PdWindow*Text.background "gray30"
startupFile
tcl/pdwindow.tcl:408:    option add *PdWindow*Entry.background "gray30"
startupFile
tcl/pdwindow.tcl:438:        -background gray30 -foreground gray88 \
tcl/pdtk_canvas.tcl:134:        -background gray30

I used this tk rgb color map to lookup the names:
https://www.tcl.tk/man/tcl/TkCmd/colors.htm

I did see a lot of hex colors in the c code when I grepped for "color".
That gave me pause, and undermined the idea that I might be able to make a
brute force global change to the color palette used by tk on my system:
https://www.sci.utah.edu/~chris/SCIRun/tcl/tk/tkColor.c

Thanks for the info and advice!

Cheers

============================================================
Andrew D Lyons | Tools Developer |
https://www.sites.google.com/site/tstexture <http://www.tstex.com>
============================================================


On Thu, 26 Sept 2024 at 00:34, IOhannes m zmoelnig <[email protected]> wrote:

> On 9/26/24 07:26, Andrew Lyons wrote:
> > Hi,
> >
> > I'm looking to modify vanilla src to hard code a dark color scheme. Just
> > something quick and easy.
>
>
> https://github.com/pure-data/pure-data/issues/1482
>
> >
> > Any pointers on where in the src I find default colors? Doesn't seem to
> be
> > in the tcl directory...
>
> it's mostly hardcoded in the C-sources.
>
>
> gdasrm
> IOhannes
> ---
> [email protected] - the Pure Data mailinglist
>
> https://lists.iem.at/hyperkitty/list/[email protected]/message/FDZXWZT5CZSX7XXGDBJT7G7IL3OKXLV6/
>
> To unsubscribe send an email to [email protected] mailing list
> UNSUBSCRIBE and account-management -> https://lists.iem.at/

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/L3NTXJSLBDUR6CFXPFBHA6K5LSPASGL7/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.