home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8360 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.5 KB  |  66 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!virgin!unhtel!mozz.unh.edu!strangeways.unh.edu!tjb
  3. From: tjb@strangeways.unh.edu (Thomas J. Baker)
  4. Subject: Re: RGB Values of "NeXT Help Blue"
  5. Message-ID: <1993Jan28.123355.6768@strangeways.unh.edu>
  6. Sender: tjb@strangeways.unh.edu (Thomas J. Baker)
  7. Reply-To: tjb@strangeways.unh.edu (Thomas J. Baker)
  8. Organization: Baker Consulting  -  Dover, NH
  9. References: <82110@hydra.gatech.EDU>
  10. Date: Thu, 28 Jan 1993 12:33:55 GMT
  11. Lines: 53
  12.  
  13. In article <82110@hydra.gatech.EDU> cc100aa@xray.gatech.edu (Ray Spalding)  
  14. writes: 
  15. > There may be more going on here than meets the eye, so to speak :-).
  16. > Look at the RTF code in:
  17. > /usr/lib/NextStep/Resources/English.lproj/HelpTemplate/Index.rtfd/TXT.rtf
  18. > Just guessing, but it looks to me like they encode both a color
  19. > value (red56,green70,blue144) that the Text object will use to
  20. > display certain text on a color device, AND a gray value (gray333)
  21. > that it will use to display the same text on a gray-scale device.
  22. > -- 
  23. > Ray Spalding, Office of Information Technology
  24. > Georgia Institute of Technology, Atlanta Georgia, 30332-0715
  25. > Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
  26.  
  27.  
  28. It seems we're getting close.  I know the tiff's for the lines have both 24bit  
  29. and 2bit color representations in them.  It seems like the text does too.  But  
  30. does anyone know how to do this?  The following bit of RTF is what happens in  
  31. the NeXT Help File:
  32.  
  33. {\colortbl;\red0\green0\blue0;\red56\green70\blue144;\red85\green85\blue85;}
  34. \pard\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx43 
  35. 2
  36. 0\tx4680\tx5040\tx5400\tx5760\tx6120\tx6480\tx6840\tx7200\tx7560\f0\b0\i0\ulnon 
  37. e
  38. \fs16\li360\fc1\cf1 \
  39.  
  40. \b\fs36 Index
  41. \i
  42. \b0\i0\fs20\gray333\fc2\cf2 (Click a topic to learn about it)
  43. \b\fs36\gray0\fc1\cf1
  44. \f1\b0\fs16 \
  45.  
  46. Both "Index" and "(Click a topic to learn about it)" are displayed in either  
  47. blue or dark gray depending on the window depth.  Wouldn't it be great if you  
  48. could have different depth representations of an RTF file in Edit and be able  
  49. to switch between them, like in IconBuilder?  
  50.  
  51. Anyway, if anyone knows how to generate this RTF (besides by hand) I'd like to  
  52. know.
  53.  
  54. Thanks,
  55.  
  56. tjb
  57. --
  58. =====================================================================
  59. | Thomas Baker        Director of the New Hampshire NeXT User Group | 
  60. | P.O. Box 213           Internet/NeXTmail: tjb@strangeways.unh.edu |
  61. | Durham, NH 03824                   Voice: (603) 743-4987          |
  62. =====================================================================
  63.