Re: Changing vanilla colors

Miller Puckette <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
I think you can now use any hex color you want - I avoided those in the 
90s when a lot of screens were color-mapped but that's a rarity nowadays.

cheers

Miller

On 9/27/24 5:44 AM, Andrew Lyons wrote:
> 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 
> <https://urldefense.com/v3/__https://www.tcl.tk/man/tcl/TkCmd/colors.htm__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_caMl-hEA$>
>
> 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 
> <https://urldefense.com/v3/__https://www.sci.utah.edu/*chris/SCIRun/tcl/tk/tkColor.c__;fg!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_d1u7o6Lw$>
>
> Thanks for the info and advice!
>
> Cheers
>
> ============================================================
> Andrew D Lyons | Tools Developer | 
> https://www.sites.google.com/site/tstexture 
> <https://urldefense.com/v3/__http://www.tstex.com__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_cppDrW6Q$>
> ============================================================
>
>
> 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
>     <https://urldefense.com/v3/__https://github.com/pure-data/pure-data/issues/1482__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_eICG5HVQ$>
>
>     >
>     > 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/
>     <https://urldefense.com/v3/__https://lists.iem.at/hyperkitty/list/[email protected]/message/FDZXWZT5CZSX7XXGDBJT7G7IL3OKXLV6/__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_cU4d7VaA$>
>
>     To unsubscribe send an email to [email protected] mailing
>     list
>     UNSUBSCRIBE and account-management -> https://lists.iem.at/
>     <https://urldefense.com/v3/__https://lists.iem.at/__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_f6j3cktQ$>
>
>
> ---
> [email protected] - the Pure Data mailinglist
> https://urldefense.com/v3/__https://lists.iem.at/hyperkitty/list/[email protected]/message/L3NTXJSLBDUR6CFXPFBHA6K5LSPASGL7/__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_d41aanvw$
>
> To unsubscribe send an email to [email protected] mailing list
> UNSUBSCRIBE and account-management -> https://urldefense.com/v3/__https://lists.iem.at/__;!!Mih3wA!Cz0jjoMNDzX3pxOS9ONvTv2Z5Tu6hv9mmd2KHRBk8PXiRjat91-SyfRkYYqg42qiSx3TM_f6j3cktQ$

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

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.