Patching up Panda Windows System Colors for Linux with sed.

Hi All,

Got to play around with TCL\TK on windows98. It seems that TK
is case insensitive at least with repect to system colors names.

Anyway I got the closest values in rgb.txt matched up to those system
colors on win98, and put them in a sed sript for patching up
panda files and demos created on windows. Might also be useful for other TK code being ported to unix.

You use it like …

mv Floater.py Floater.py.win
sed -f ~/systemcolors.sedscr Floater.py.win > Floater.py

… and outfile has the portable color names in for use on linux.

Sorry if it makes things windows98 colored, thats all I had to work with.

Later,

Robert.

           Cut this out and save as systemcolors.sedscr in your
           home directory.

         ----------------8<-------------------------8<--------------------

#systemcolors.sedscr – Changes MS Windows system colors to rgb.txt colors
s/system3ddarkshadow/black/I
s/system3dlight/gray88/I
s/systemactiveborder/gray75/I
s/systemactivecaption/navy/I
s/systemappworkspace/gray50/I
s/systembackground/cyan4/I
s/systembuttonface/gray75/I
s/systembuttonhighlight/white/I
s/systembuttonshadow/gray50/I
s/systembuttontext/black/I
s/systemcaptiontext/white/I
s/systemdisabledtext/gray50/I
s/systemgraytext/gray50/I
s/systemhightlight/navy/I
s/systemhighlighttext/white/I
s/systeminactiveborder/gray75/I
s/systeminactivecaption/gray50/I
s/systeminactivecaptiontext/gray75/I
s/systeminfobackground/ivory/I
s/systeminfotext/black/I
s/systemmenu/gray75/I
s/systemmenutext/black/I
s/systemscrollbar/gray75/I
s/systemwindow/white/I
s/systemwindowframe/black/I
s/systemwindowtext/black/I

I’ve incorporated these changes into panda3d 1.0.5

  • Josh