home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / panel / menuclr.h < prev    next >
Text File  |  1991-01-02  |  20KB  |  402 lines

  1.  
  2.  
  3. /* mono button: ColorA1 */
  4. #define ColorA1_offo_width 37
  5. #define ColorA1_offo_height 14
  6. static char ColorA1_offo_label[] = {
  7.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  8.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9a, 0xc1, 0xa1, 0x83,
  9.   0x03, 0x66, 0x22, 0x62, 0x44, 0x04, 0x22, 0x12, 0x24, 0x24, 0x08, 0x22,
  10.   0x12, 0x24, 0x24, 0x08, 0x22, 0x12, 0x24, 0x24, 0x08, 0x22, 0x22, 0x22,
  11.   0x44, 0x04, 0x22, 0xc2, 0x21, 0x84, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
  12.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  13. static char ColorA1_offo_mask[] = {
  14.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  15.   0x00, 0x00, 0x00, 0xff, 0xe3, 0xf3, 0xc7, 0x07, 0xff, 0xf7, 0xf7, 0xef,
  16.   0x0f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0x7f, 0xff, 0xfe, 0x1e, 0x77,
  17.   0x3f, 0x7e, 0x7e, 0x1c, 0x77, 0x7f, 0x7f, 0xfe, 0x1e, 0x77, 0xff, 0x7f,
  18.   0xfe, 0x1f, 0x77, 0xf7, 0x77, 0xee, 0x0f, 0x77, 0xe7, 0x73, 0xce, 0x07,
  19.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  20. static int ColorA1_offo_breaks[] = { 11, 20, 28, 37 };
  21. static ButtonLabel ColorA1_offo = {
  22.   (unsigned char *)ColorA1_offo_label, (unsigned char *)ColorA1_offo_mask,
  23.   ColorA1_offo_width, ColorA1_offo_height,
  24.   0.5, 0.5, 0, 0,            /* placement */
  25.   5, 4, 0, ColorA1_offo_breaks };
  26. #define ColorA1_offi_width 35
  27. #define ColorA1_offi_height 14
  28. static char ColorA1_offi_label[] = {
  29.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  30.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdf, 0xf1, 0xf9, 0xf1,
  31.   0x01, 0x33, 0x1b, 0x1b, 0x1b, 0x03, 0x33, 0x1b, 0x1b, 0x1b, 0x03, 0x33,
  32.   0x1b, 0x1b, 0x1b, 0x03, 0x33, 0x1b, 0x1b, 0x1b, 0x03, 0x33, 0x1b, 0x1b,
  33.   0x1b, 0x03, 0x33, 0xf3, 0x19, 0xf3, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
  34.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  35. static char ColorA1_offi_mask[] = {
  36.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  37.   0x00, 0x00, 0x00, 0xff, 0xfb, 0xff, 0xfb, 0x03, 0xff, 0xff, 0xff, 0xff,
  38.   0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0xbf, 0xbf, 0xbf, 0x07, 0xff,
  39.   0xbf, 0xbf, 0xbf, 0x07, 0xff, 0xbf, 0xbf, 0xbf, 0x07, 0xff, 0xff, 0xbf,
  40.   0xff, 0x07, 0xff, 0xff, 0xbf, 0xff, 0x07, 0xff, 0xff, 0xbf, 0xff, 0x03,
  41.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  42. static int ColorA1_offi_breaks[] = { 11, 19, 27, 35 };
  43. static ButtonLabel ColorA1_offi = {
  44.   (unsigned char *)ColorA1_offi_label, (unsigned char *)ColorA1_offi_mask,
  45.   ColorA1_offi_width, ColorA1_offi_height,
  46.   0.5, 0.5, 0, 0,            /* placement */
  47.   5, 4, 0, ColorA1_offi_breaks };
  48. static ButtonLook ColorA1_look = {
  49.   &ColorA1_offo, NULL, &ColorA1_offo, NULL,
  50.   &ColorA1_offi, NULL, &ColorA1_offi, NULL };
  51. static ButtonFeel ColorA1_feel = {
  52.   "ColorA1", 2,
  53.   { BTNToggle, BTNCoWhile },
  54.   { 0x0004, 0x0004 },
  55.   { 0x0000, 0x0004 },
  56.   { 8, 1, 0, 0 } };
  57. /* ovlay button: ColorA2 */
  58. #define ColorA2_offo_width 38
  59. #define ColorA2_offo_height 14
  60. static char ColorA2_offo_label[] = {
  61.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00,
  62.   0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x38, 0x04, 0x89, 0x43,
  63.   0x10, 0x44, 0x04, 0x49, 0x44, 0x10, 0x82, 0x88, 0x08, 0x86, 0x08, 0x82,
  64.   0x88, 0x88, 0x85, 0x08, 0x82, 0x50, 0x48, 0x04, 0x05, 0x44, 0x50, 0x48,
  65.   0x04, 0x05, 0x38, 0x20, 0x88, 0x0b, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02,
  66.   0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x00, 0x80, 0x01 };
  67. static char ColorA2_offo_mask[] = {
  68.   0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00,
  69.   0x1c, 0x00, 0x00, 0x7c, 0x8e, 0xdf, 0xe7, 0x38, 0xfe, 0x8e, 0xff, 0xef,
  70.   0x38, 0xff, 0xdf, 0xff, 0xef, 0x3d, 0xef, 0xdf, 0xff, 0xef, 0x3d, 0xc7,
  71.   0xfd, 0xfd, 0xcf, 0x1f, 0xef, 0xfd, 0xfd, 0xcf, 0x1f, 0xff, 0xf9, 0xfc,
  72.   0x9f, 0x0f, 0xfe, 0xf8, 0xfc, 0x9f, 0x0f, 0x7c, 0x70, 0xdc, 0xff, 0x07,
  73.   0x00, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x00, 0x00, 0xe0, 0x07 };
  74. static int ColorA2_offo_breaks[] = { 9, 18, 21, 29, 38 };
  75. static ButtonLabel ColorA2_offo = {
  76.   (unsigned char *)ColorA2_offo_label, (unsigned char *)ColorA2_offo_mask,
  77.   ColorA2_offo_width, ColorA2_offo_height,
  78.   0.5, 0.5, 0, 0,            /* placement */
  79.   5, 5, 0, ColorA2_offo_breaks };
  80. #define ColorA2_offi_width 36
  81. #define ColorA2_offi_height 14
  82. static char ColorA2_offi_label[] = {
  83.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00,
  84.   0x06, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x3e, 0xc3, 0xe6, 0x31,
  85.   0x06, 0x63, 0xc3, 0x36, 0x33, 0x06, 0x63, 0x66, 0x06, 0x63, 0x06, 0x63,
  86.   0x66, 0xe6, 0x63, 0x03, 0x63, 0x24, 0x36, 0x43, 0x03, 0x63, 0x3c, 0x36,
  87.   0xc3, 0x03, 0x3e, 0x18, 0xe6, 0x86, 0x01, 0x00, 0x00, 0x00, 0x80, 0x01,
  88.   0x00, 0x00, 0x00, 0xb0, 0x01, 0x00, 0x00, 0x00, 0xe0, 0x00 };
  89. static char ColorA2_offi_mask[] = {
  90.   0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00,
  91.   0x0f, 0x00, 0x00, 0xff, 0xe7, 0xff, 0x7b, 0x0f, 0xff, 0xe7, 0xff, 0x7f,
  92.   0x0f, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf7, 0xff, 0xff, 0xff, 0x0f, 0xf7,
  93.   0xff, 0xff, 0xf7, 0x0f, 0xf7, 0xff, 0xff, 0xf7, 0x07, 0xff, 0x7e, 0xff,
  94.   0xef, 0x07, 0xff, 0x7e, 0xff, 0xef, 0x07, 0x7f, 0x3c, 0xff, 0xff, 0x03,
  95.   0x00, 0x00, 0x00, 0xf8, 0x03, 0x00, 0x00, 0x00, 0xf8, 0x03 };
  96. static int ColorA2_offi_breaks[] = { 8, 17, 20, 28, 36 };
  97. static ButtonLabel ColorA2_offi = {
  98.   (unsigned char *)ColorA2_offi_label, (unsigned char *)ColorA2_offi_mask,
  99.   ColorA2_offi_width, ColorA2_offi_height,
  100.   0.5, 0.5, 0, 0,            /* placement */
  101.   5, 5, 0, ColorA2_offi_breaks };
  102. static ButtonLook ColorA2_look = {
  103.   &ColorA2_offo, NULL, &ColorA2_offo, NULL,
  104.   &ColorA2_offi, NULL, &ColorA2_offi, NULL };
  105. static ButtonFeel ColorA2_feel = {
  106.   "ColorA2", 2,
  107.   { BTNToggle, BTNCoWhile },
  108.   { 0x0004, 0x0004 },
  109.   { 0x0000, 0x0004 },
  110.   { 8, 4, 0, 0 } };
  111. /* contbias button: ColorA3 */
  112. #define ColorA3_offo_width 32
  113. #define ColorA3_offo_height 16
  114. static char ColorA3_offo_label[] = {
  115.   0x00, 0x80, 0x80, 0x00, 0x10, 0xc0, 0x41, 0x00, 0x38, 0xe0, 0x23, 0x00,
  116.   0x7c, 0x90, 0x14, 0x00, 0x92, 0x80, 0x08, 0x00, 0x30, 0x80, 0x04, 0x00,
  117.   0x20, 0x00, 0x82, 0x01, 0x60, 0x00, 0x01, 0x03, 0xc0, 0x80, 0x00, 0x06,
  118.   0x80, 0x41, 0x00, 0x04, 0x00, 0x20, 0x01, 0x0c, 0x00, 0x10, 0x01, 0x49,
  119.   0x00, 0x28, 0x09, 0x3e, 0x00, 0xc4, 0x07, 0x1c, 0x00, 0x82, 0x03, 0x08,
  120.   0x00, 0x01, 0x01, 0x00 };
  121. static char ColorA3_offo_mask[] = {
  122.   0x38, 0xe0, 0xf3, 0x03, 0x7c, 0xf0, 0xff, 0x03, 0xfe, 0xf8, 0xff, 0x01,
  123.   0xff, 0xfd, 0xff, 0x00, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x07,
  124.   0xff, 0xc3, 0xdf, 0x0f, 0xf8, 0xe3, 0xcf, 0x1f, 0xf8, 0xf3, 0xc7, 0x1f,
  125.   0xf0, 0xfb, 0xc3, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xc0, 0xff, 0xff, 0xff,
  126.   0x00, 0xff, 0xbf, 0xff, 0x80, 0xff, 0x1f, 0x7f, 0xc0, 0xff, 0x0f, 0x3e,
  127.   0xc0, 0xcf, 0x07, 0x1c };
  128. static ButtonLabel ColorA3_offo = {
  129.   (unsigned char *)ColorA3_offo_label, (unsigned char *)ColorA3_offo_mask,
  130.   ColorA3_offo_width, ColorA3_offo_height,
  131.   0.5, 0.5, 0, 0,            /* placement */
  132.   4, 0, 0, NULL };
  133. #define ColorA3_offi_width 32
  134. #define ColorA3_offi_height 16
  135. static char ColorA3_offi_label[] = {
  136.   0x00, 0x80, 0xc0, 0x01, 0x10, 0xc0, 0xe1, 0x00, 0x38, 0xe0, 0x73, 0x00,
  137.   0x7c, 0xf0, 0x3f, 0x00, 0xfe, 0x98, 0x1c, 0x00, 0xba, 0x81, 0x8e, 0x01,
  138.   0x30, 0x00, 0x87, 0x03, 0x70, 0x80, 0x03, 0x07, 0xe0, 0xc0, 0x01, 0x0e,
  139.   0xc0, 0xe1, 0x00, 0x0c, 0x80, 0x71, 0x81, 0x5d, 0x00, 0x38, 0x19, 0x7f,
  140.   0x00, 0xfc, 0x0f, 0x3e, 0x00, 0xce, 0x07, 0x1c, 0x00, 0x87, 0x03, 0x08,
  141.   0x80, 0x03, 0x01, 0x00 };
  142. static char ColorA3_offi_mask[] = {
  143.   0x38, 0xe0, 0xf3, 0x03, 0x7c, 0xf0, 0xff, 0x03, 0xfe, 0xf8, 0xff, 0x01,
  144.   0xff, 0xfd, 0xff, 0x00, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0x07,
  145.   0xff, 0xc3, 0xdf, 0x0f, 0xf8, 0xe3, 0xcf, 0x1f, 0xf8, 0xf3, 0xc7, 0x1f,
  146.   0xf0, 0xfb, 0xc3, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xc0, 0xff, 0xff, 0xff,
  147.   0x00, 0xff, 0xbf, 0xff, 0x80, 0xff, 0x1f, 0x7f, 0xc0, 0xff, 0x0f, 0x3e,
  148.   0xc0, 0xcf, 0x07, 0x1c };
  149. static ButtonLabel ColorA3_offi = {
  150.   (unsigned char *)ColorA3_offi_label, (unsigned char *)ColorA3_offi_mask,
  151.   ColorA3_offi_width, ColorA3_offi_height,
  152.   0.5, 0.5, 0, 0,            /* placement */
  153.   4, 0, 0, NULL };
  154. static ButtonLook ColorA3_look = {
  155.   &ColorA3_offo, NULL, &ColorA3_offo, NULL,
  156.   &ColorA3_offi, NULL, &ColorA3_offi, NULL };
  157. static ButtonFeel ColorA3_feel = {
  158.   "ColorA3", 2,
  159.   { BTNMode, BTNCoWhile },
  160.   { 0x0004, 0x0004 },
  161.   { 0x0000, 0x0004 },
  162.   { 8, 4096, 0, 0 } };
  163. /* thresat button: ColorA4 */
  164. #define ColorA4_offo_width 32
  165. #define ColorA4_offo_height 16
  166. static char ColorA4_offo_label[] = {
  167.   0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x1c, 0x00, 0x00, 0x20, 0x3e,
  168.   0x00, 0x00, 0x10, 0x49, 0x00, 0x00, 0x08, 0x08, 0x10, 0x00, 0x04, 0x00,
  169.   0x38, 0x00, 0x02, 0x08, 0x7c, 0x00, 0x01, 0x49, 0x92, 0x80, 0x00, 0x3e,
  170.   0x10, 0x40, 0x00, 0x1c, 0x00, 0x20, 0x00, 0x08, 0x10, 0x10, 0x00, 0x00,
  171.   0x92, 0x08, 0x00, 0x00, 0x7c, 0x04, 0x00, 0x00, 0x38, 0x02, 0x00, 0x00,
  172.   0x10, 0x00, 0x00, 0x00 };
  173. static char ColorA4_offo_mask[] = {
  174.   0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0xfc, 0xff,
  175.   0x38, 0x00, 0xfe, 0xff, 0x7c, 0x00, 0xff, 0xff, 0xfe, 0x80, 0xff, 0xff,
  176.   0xff, 0xc1, 0xdf, 0xff, 0xff, 0xe3, 0xcf, 0xff, 0xff, 0xf3, 0xc7, 0xff,
  177.   0xff, 0xfb, 0x83, 0xff, 0xff, 0xff, 0x01, 0x7f, 0xff, 0xff, 0x00, 0x3e,
  178.   0xff, 0x7f, 0x00, 0x1c, 0xff, 0x3f, 0x00, 0x00, 0xfe, 0x1f, 0x00, 0x00,
  179.   0xfc, 0x0f, 0x00, 0x00 };
  180. static ButtonLabel ColorA4_offo = {
  181.   (unsigned char *)ColorA4_offo_label, (unsigned char *)ColorA4_offo_mask,
  182.   ColorA4_offo_width, ColorA4_offo_height,
  183.   0.5, 0.5, 0, 0,            /* placement */
  184.   4, 0, 0, NULL };
  185. #define ColorA4_offi_width 32
  186. #define ColorA4_offi_height 16
  187. static char ColorA4_offi_label[] = {
  188.   0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xe0, 0x1c, 0x00, 0x00, 0x70, 0x3e,
  189.   0x00, 0x00, 0x38, 0x7f, 0x10, 0x00, 0x9c, 0xc9, 0x38, 0x00, 0x0e, 0x08,
  190.   0x7c, 0x00, 0x07, 0x08, 0xfe, 0x80, 0x83, 0xc9, 0x93, 0xc1, 0x01, 0x7f,
  191.   0x10, 0xe0, 0x00, 0x3e, 0x10, 0x70, 0x00, 0x1c, 0x93, 0x39, 0x00, 0x08,
  192.   0xfe, 0x1c, 0x00, 0x00, 0x7c, 0x0e, 0x00, 0x00, 0x38, 0x07, 0x00, 0x00,
  193.   0x10, 0x00, 0x00, 0x00 };
  194. static char ColorA4_offi_mask[] = {
  195.   0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0xfc, 0xff,
  196.   0x38, 0x00, 0xfe, 0xff, 0x7c, 0x00, 0xff, 0xff, 0xfe, 0x80, 0xff, 0xff,
  197.   0xff, 0xc1, 0xdf, 0xff, 0xff, 0xe3, 0xcf, 0xff, 0xff, 0xf3, 0xc7, 0xff,
  198.   0xff, 0xfb, 0x83, 0xff, 0xff, 0xff, 0x01, 0x7f, 0xff, 0xff, 0x00, 0x3e,
  199.   0xff, 0x7f, 0x00, 0x1c, 0xff, 0x3f, 0x00, 0x00, 0xfe, 0x1f, 0x00, 0x00,
  200.   0xfc, 0x0f, 0x00, 0x00 };
  201. static ButtonLabel ColorA4_offi = {
  202.   (unsigned char *)ColorA4_offi_label, (unsigned char *)ColorA4_offi_mask,
  203.   ColorA4_offi_width, ColorA4_offi_height,
  204.   0.5, 0.5, 0, 0,            /* placement */
  205.   4, 0, 0, NULL };
  206. static ButtonLook ColorA4_look = {
  207.   &ColorA4_offo, NULL, &ColorA4_offo, NULL,
  208.   &ColorA4_offi, NULL, &ColorA4_offi, NULL };
  209. static ButtonFeel ColorA4_feel = {
  210.   "ColorA4", 2,
  211.   { BTNMode, BTNCoWhile },
  212.   { 0x0004, 0x0004 },
  213.   { 0x0000, 0x0004 },
  214.   { 8, 8192, 0, 0 } };
  215. /* gamma button: ColorA5 */
  216. #define ColorA5_offo_width 46
  217. #define ColorA5_offo_height 14
  218. static char ColorA5_offo_label[] = {
  219.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  220.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  221.   0x58, 0x1c, 0x9a, 0xd1, 0x0c, 0x07, 0x64, 0x22, 0x66, 0x32, 0x93, 0x08,
  222.   0x42, 0x30, 0x22, 0x12, 0x11, 0x0c, 0x42, 0x2c, 0x22, 0x12, 0x11, 0x0b,
  223.   0x42, 0x22, 0x22, 0x12, 0x91, 0x08, 0x64, 0x22, 0x22, 0x12, 0x91, 0x08,
  224.   0x58, 0x5c, 0x22, 0x12, 0x11, 0x17, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
  225.   0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00 };
  226. static char ColorA5_offo_mask[] = {
  227.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  228.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x3e, 0xff, 0xfb, 0x9f, 0x0f,
  229.   0xfe, 0x7f, 0xff, 0xff, 0xff, 0x1f, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x1f,
  230.   0xff, 0x7f, 0xff, 0xff, 0xff, 0x1f, 0xe7, 0x7f, 0x77, 0xbf, 0xfb, 0x1f,
  231.   0xff, 0x7f, 0x77, 0xbf, 0xfb, 0x1f, 0xff, 0xff, 0x77, 0xbf, 0xfb, 0x3f,
  232.   0xfe, 0xff, 0x77, 0xbf, 0xfb, 0x3f, 0xff, 0xfe, 0x77, 0xbf, 0xbb, 0x3f,
  233.   0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 };
  234. static int ColorA5_offo_breaks[] = { 8, 16, 27, 38, 46 };
  235. static ButtonLabel ColorA5_offo = {
  236.   (unsigned char *)ColorA5_offo_label, (unsigned char *)ColorA5_offo_mask,
  237.   ColorA5_offo_width, ColorA5_offo_height,
  238.   0.5, 0.5, 0, 0,            /* placement */
  239.   6, 5, 0, ColorA5_offo_breaks };
  240. #define ColorA5_offi_width 46
  241. #define ColorA5_offi_height 14
  242. static char ColorA5_offi_label[] = {
  243.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  244.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  245.   0x7e, 0x1e, 0xdf, 0xf9, 0x8e, 0x07, 0x63, 0x33, 0x33, 0x9b, 0xd9, 0x0c,
  246.   0x63, 0x30, 0x33, 0x9b, 0x19, 0x0c, 0x63, 0x3e, 0x33, 0x9b, 0x99, 0x0f,
  247.   0x63, 0x33, 0x33, 0x9b, 0xd9, 0x0c, 0x63, 0x33, 0x33, 0x9b, 0xd9, 0x0c,
  248.   0x7e, 0x6e, 0x33, 0x9b, 0x99, 0x1b, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
  249.   0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00 };
  250. static char ColorA5_offi_mask[] = {
  251.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  252.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xbf, 0xff, 0xff, 0xdf, 0x0f,
  253.   0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f,
  254.   0xf7, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf7, 0xff, 0xff, 0xff, 0xff, 0x1f,
  255.   0xf7, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f,
  256.   0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f,
  257.   0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 };
  258. static int ColorA5_offi_breaks[] = { 8, 16, 27, 38, 46 };
  259. static ButtonLabel ColorA5_offi = {
  260.   (unsigned char *)ColorA5_offi_label, (unsigned char *)ColorA5_offi_mask,
  261.   ColorA5_offi_width, ColorA5_offi_height,
  262.   0.5, 0.5, 0, 0,            /* placement */
  263.   6, 5, 0, ColorA5_offi_breaks };
  264. static ButtonLook ColorA5_look = {
  265.   &ColorA5_offo, NULL, &ColorA5_offo, NULL,
  266.   &ColorA5_offi, NULL, &ColorA5_offi, NULL };
  267. static ButtonFeel ColorA5_feel = {
  268.   "ColorA5", 2,
  269.   { BTNMode, BTNCoWhile },
  270.   { 0x0004, 0x0004 },
  271.   { 0x0000, 0x0004 },
  272.   { 8, 16384, 0, 0 } };
  273. /* invert button: ColorA6 */
  274. #define ColorA6_offo_width 40
  275. #define ColorA6_offo_height 14
  276. static char ColorA6_offo_label[] = {
  277.   0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
  278.   0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0xd2, 0x11, 0x84, 0xa1,
  279.   0x79, 0x32, 0x12, 0x44, 0x62, 0x10, 0x12, 0x22, 0x22, 0x24, 0x10, 0x12,
  280.   0x22, 0xe2, 0x27, 0x10, 0x12, 0x42, 0x21, 0x20, 0x10, 0x12, 0x42, 0x41,
  281.   0x24, 0x10, 0x12, 0x82, 0x80, 0x23, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
  282.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  283. static char ColorA6_offo_mask[] = {
  284.   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x38, 0x07, 0x00,
  285.   0x00, 0x00, 0x38, 0xff, 0x3b, 0xce, 0xf3, 0xff, 0xff, 0x3f, 0xee, 0xf7,
  286.   0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x7f, 0xff, 0xff, 0x38, 0x3f,
  287.   0xf7, 0xf7, 0x7f, 0x38, 0x3f, 0xf7, 0xf7, 0x7f, 0x38, 0x3f, 0xe7, 0xf3,
  288.   0x7f, 0xf8, 0x3f, 0xe7, 0xe3, 0x7f, 0xf8, 0x3f, 0xc7, 0xc1, 0x77, 0xf0,
  289.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  290. static int ColorA6_offo_breaks[] = { 3, 11, 20, 28, 34, 40 };
  291. static ButtonLabel ColorA6_offo = {
  292.   (unsigned char *)ColorA6_offo_label, (unsigned char *)ColorA6_offo_mask,
  293.   ColorA6_offo_width, ColorA6_offo_height,
  294.   0.5, 0.5, 0, 0,            /* placement */
  295.   5, 6, 0, ColorA6_offo_breaks };
  296. #define ColorA6_offi_width 40
  297. #define ColorA6_offi_height 14
  298. static char ColorA6_offi_label[] = {
  299.   0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
  300.   0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0xfb, 0x19, 0xe6, 0xf3,
  301.   0x7d, 0x1b, 0x1b, 0x36, 0xb6, 0x19, 0x1b, 0x33, 0x33, 0x36, 0x18, 0x1b,
  302.   0x33, 0xf3, 0x37, 0x18, 0x1b, 0x23, 0x31, 0x30, 0x18, 0x1b, 0xe3, 0x31,
  303.   0x36, 0x18, 0x1b, 0xc3, 0xe0, 0x33, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00,
  304.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  305. static char ColorA6_offi_mask[] = {
  306.   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3c, 0x07, 0x00,
  307.   0x00, 0x00, 0x3c, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff,
  308.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff, 0x3f, 0xbf,
  309.   0xff, 0xff, 0x7f, 0x3c, 0xbf, 0xff, 0xff, 0x7f, 0x3c, 0xbf, 0xf7, 0xfb,
  310.   0x7f, 0xfc, 0xbf, 0xf7, 0xfb, 0x7f, 0xfc, 0xbf, 0xe7, 0xf1, 0x7f, 0xf8,
  311.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  312. static int ColorA6_offi_breaks[] = { 3, 11, 20, 28, 34, 40 };
  313. static ButtonLabel ColorA6_offi = {
  314.   (unsigned char *)ColorA6_offi_label, (unsigned char *)ColorA6_offi_mask,
  315.   ColorA6_offi_width, ColorA6_offi_height,
  316.   0.5, 0.5, 0, 0,            /* placement */
  317.   5, 6, 0, ColorA6_offi_breaks };
  318. static ButtonLook ColorA6_look = {
  319.   &ColorA6_offo, NULL, &ColorA6_offo, NULL,
  320.   &ColorA6_offi, NULL, &ColorA6_offi, NULL };
  321. static ButtonFeel ColorA6_feel = {
  322.   "ColorA6", 2,
  323.   { BTNToggle, BTNCoWhile },
  324.   { 0x0004, 0x0004 },
  325.   { 0x0000, 0x0004 },
  326.   { 8, 128, 0, 0 } };
  327. /* cmap button: ColorA7 */
  328. #define ColorA7_offo_width 35
  329. #define ColorA7_offo_height 14
  330. static char ColorA7_offo_label[] = {
  331.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  332.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x9a, 0xe1, 0xd0,
  333.   0x00, 0x44, 0x66, 0x12, 0x31, 0x01, 0x02, 0x22, 0x82, 0x11, 0x02, 0x02,
  334.   0x22, 0x62, 0x11, 0x02, 0x02, 0x22, 0x12, 0x11, 0x02, 0x44, 0x22, 0x12,
  335.   0x31, 0x01, 0x38, 0x22, 0xe2, 0xd2, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
  336.   0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00 };
  337. static char ColorA7_offo_mask[] = {
  338.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  339.   0x00, 0x00, 0x00, 0x7c, 0xff, 0xf3, 0xf9, 0x01, 0xfe, 0xff, 0xff, 0xfb,
  340.   0x03, 0xff, 0xff, 0xff, 0xfb, 0x07, 0xef, 0xff, 0xff, 0xfb, 0x07, 0x07,
  341.   0x77, 0xff, 0x3b, 0x07, 0xef, 0x77, 0xff, 0xfb, 0x07, 0xff, 0x77, 0xff,
  342.   0xff, 0x07, 0xfe, 0x77, 0xff, 0xff, 0x03, 0x7c, 0x77, 0xf7, 0xff, 0x01,
  343.   0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00 };
  344. static int ColorA7_offo_breaks[] = { 8, 19, 27, 35 };
  345. static ButtonLabel ColorA7_offo = {
  346.   (unsigned char *)ColorA7_offo_label, (unsigned char *)ColorA7_offo_mask,
  347.   ColorA7_offo_width, ColorA7_offo_height,
  348.   0.5, 0.5, 0, 0,            /* placement */
  349.   5, 4, 0, ColorA7_offo_breaks };
  350. #define ColorA7_offi_width 35
  351. #define ColorA7_offi_height 14
  352. static char ColorA7_offi_label[] = {
  353.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  354.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0xdf, 0xf1, 0xf8,
  355.   0x01, 0x63, 0x33, 0x9b, 0x19, 0x03, 0x03, 0x33, 0x83, 0x19, 0x03, 0x03,
  356.   0x33, 0xf3, 0x19, 0x03, 0x63, 0x33, 0x9b, 0x19, 0x03, 0x63, 0x33, 0x9b,
  357.   0x19, 0x03, 0x3e, 0x33, 0x73, 0xfb, 0x01, 0x00, 0x00, 0x00, 0x18, 0x00,
  358.   0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00 };
  359. static char ColorA7_offi_mask[] = {
  360.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  361.   0x00, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xfd, 0x03, 0xff, 0xff, 0xff, 0xff,
  362.   0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0xf7, 0xff, 0xff, 0xbf, 0x07, 0xf7,
  363.   0xff, 0xff, 0xbf, 0x07, 0xf7, 0xff, 0xff, 0xbf, 0x07, 0xff, 0xff, 0xff,
  364.   0xff, 0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0xff, 0x03,
  365.   0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00 };
  366. static int ColorA7_offi_breaks[] = { 8, 19, 27, 35 };
  367. static ButtonLabel ColorA7_offi = {
  368.   (unsigned char *)ColorA7_offi_label, (unsigned char *)ColorA7_offi_mask,
  369.   ColorA7_offi_width, ColorA7_offi_height,
  370.   0.5, 0.5, 0, 0,            /* placement */
  371.   5, 4, 0, ColorA7_offi_breaks };
  372. static ButtonLook ColorA7_look = {
  373.   &ColorA7_offo, NULL, &ColorA7_offo, NULL,
  374.   &ColorA7_offi, NULL, &ColorA7_offi, NULL };
  375. static ButtonFeel ColorA7_feel = {
  376.   "ColorA7", 2,
  377.   { BTNToggle, BTNCoWhile },
  378.   { 0x0004, 0x0004 },
  379.   { 0x0000, 0x0004 },
  380.   { 5, 0, 0, 0 } };
  381. static ButtonSpec ColorA[] = {
  382.   { &ColorA1_look, &ColorA1_feel },
  383.   { &ColorA2_look, &ColorA2_feel },
  384.   { &ColorA3_look, &ColorA3_feel },
  385.   { &ColorA4_look, &ColorA4_feel },
  386.   { &ColorA5_look, &ColorA5_feel },
  387.   { &ColorA6_look, &ColorA6_feel },
  388.   { &ColorA7_look, &ColorA7_feel } };
  389. static BoxGeometry ColorA_geo = 
  390.   { 0, 7, 7, 1, 7.000000, 1.000000, 0.000000, 0.000000, 0, 1 };
  391.  
  392. void MakeColorPanel ( box, parent, gc, visual, background )
  393.      BoxParent *parent;
  394.      ButtonBox box[1];
  395.      GC gc;
  396.      Visual *visual;
  397.      unsigned long background;
  398. {
  399.   box[0] = MakeButtonBox(&parent[1], gc, visual, background,
  400.              &ColorA_geo, ColorA, 0);
  401. }
  402.