b&w display fixes
authorClaus Gittinger <cg@exept.de>
Mon, 21 Apr 1997 13:59:20 +0200
changeset 1624 46064adf74a0
parent 1623 56c2fd4250c8
child 1625 e7fa1555a82d
b&w display fixes
styles/motif.common
styles/motif.style
styles/mswindows3.style
--- a/styles/motif.common	Mon Apr 21 13:58:33 1997 +0200
+++ b/styles/motif.common	Mon Apr 21 13:59:20 1997 +0200
@@ -2,7 +2,7 @@
 ; common motif stuff (not a style, but included by all motif style variations)
 ;
 ;
-; $Header: /cvs/stx/stx/libview/styles/motif.common,v 1.13 1997-04-21 09:08:34 cg Exp $
+; $Header: /cvs/stx/stx/libview/styles/motif.common,v 1.14 1997-04-21 11:59:18 cg Exp $
 
 ;
 ; this is to be included from the real style,
@@ -132,7 +132,7 @@
 requestBoxIconFile                'bitmaps/Request_motif.xbm'
 
 
-
+#if Display hasGrayscales
 arrowButtonUpForm                 Image extent:11@12 \
 					depth:2      \
 					bits:#[4r0000 4r0100 4r0000 \
@@ -200,3 +200,70 @@
 					       4r0120 4r0000 4r0000 \
 					      ] \
 					pad:8
+#else
+arrowButtonUpForm                 Image extent:11@12 \
+					depth:1      \
+					bits:#[2r00000000 2r00000000 \
+					       2r00000100 2r00000000 \
+					       2r00000100 2r00000000 \
+					       2r00001110 2r00000000 \
+					       2r00001110 2r00000000 \
+					       2r00011111 2r00000000 \
+					       2r00011111 2r00000000 \
+					       2r00111111 2r10000000 \
+					       2r00111111 2r10000000 \
+					       2r01111111 2r11000000 \
+					       2r00000000 2r00000000 \
+					       2r00000000 2r00000000] \
+					pad:8
+
+arrowButtonDownForm               Image extent:11@12 \
+					depth:1      \
+					bits:#[2r00000000 2r00000000 \
+					       2r00000000 2r00000000 \
+					       2r01111111 2r11000000 \
+					       2r00111111 2r10000000 \
+					       2r00111111 2r10000000 \
+					       2r00011111 2r00000000 \
+					       2r00011111 2r00000000 \
+					       2r00001110 2r00000000 \
+					       2r00001110 2r00000000 \
+					       2r00000100 2r00000000 \
+					       2r00000100 2r00000000 \
+					       2r00000000 2r00000000] \
+					pad:8
+
+arrowButtonLeftForm               Image extent:12@11 \
+					depth:1      \
+					bits:#[ \
+					       2r00000000 2r00000000 \
+					       2r00000000 2r01000000 \
+					       2r00000001 2r11000000 \
+					       2r00000111 2r11000000 \
+					       2r00011111 2r11000000 \
+					       2r01111111 2r11000000 \
+					       2r00011111 2r11000000 \
+					       2r00000111 2r11000000 \
+					       2r00000001 2r11000000 \
+					       2r00000000 2r11000000 \
+					       2r00000000 2r00000000 \
+					      ] \
+					pad:8
+
+arrowButtonRightForm              Image extent:12@11 \
+					depth:1      \
+					bits:#[ \
+					       2r00000000 2r00000000 \
+					       2r00100000 2r00000000 \
+					       2r00111000 2r00000000 \
+					       2r00111110 2r00000000 \
+					       2r00111111 2r10000000 \
+					       2r00111111 2r11100000 \
+					       2r00111111 2r10000000 \
+					       2r00111110 2r00000000 \
+					       2r00111000 2r00000000 \
+					       2r00100000 2r00000000 \
+					       2r00000000 2r00000000 \
+					      ] \
+					pad:8
+#endif
--- a/styles/motif.style	Mon Apr 21 13:58:33 1997 +0200
+++ b/styles/motif.style	Mon Apr 21 13:59:20 1997 +0200
@@ -7,7 +7,7 @@
 ; on VGA displays, where the colors are a bit darkish,
 ; use motif_light
 ;
-; $Header: /cvs/stx/stx/libview/styles/motif.style,v 1.8 1996-06-12 12:13:05 cg Exp $
+; $Header: /cvs/stx/stx/libview/styles/motif.style,v 1.9 1997-04-21 11:59:19 cg Exp $
 
 #if Display hasGreyscales
 viewGrey                Color grey:61
@@ -16,7 +16,7 @@
 mediumColor             Color grey:52
 #else
 viewGrey                Color white
-lightColor              Color grey:25
+lightColor              Color grey:75
 shadowColor             Color black
 mediumColor             Color grey:50.
 #endif
@@ -53,6 +53,10 @@
 editFieldBackgroundColor           Color red:100 green:75 blue:75
 editFieldSelectionBackgroundColor  Color white
 editFieldSelectionForegroundColor  Color black
+#else
+# if Display hasGrayscales not
+editFieldBackgroundColor           Color white
+# endif
 #endif
 
 
--- a/styles/mswindows3.style	Mon Apr 21 13:58:33 1997 +0200
+++ b/styles/mswindows3.style	Mon Apr 21 13:59:20 1997 +0200
@@ -1,6 +1,6 @@
 ; View defaultStyle:#win95 
 ;
-; $Header: /cvs/stx/stx/libview/styles/mswindows3.style,v 1.14 1997-03-29 10:26:47 cg Exp $
+; $Header: /cvs/stx/stx/libview/styles/mswindows3.style,v 1.15 1997-04-21 11:59:20 cg Exp $
 
 comment  'win95 lookalike - unfinished'
 
@@ -34,8 +34,14 @@
 textCursorType                          #ibeam
 textCursorNoFocusForegroundColor        Color grey
 
+#if Display hasGrayscales
 editFieldBackgroundColor                Color grey:90
 ; editFieldBackgroundColor                Color white
+#else
+editFieldBackgroundColor                Color white
+editFieldShadowColor                    Color black
+editFieldLightColor                     Color grey:80
+#endif
 
 checkToggleActiveLevel                  -2
 checkTogglePassiveLevel                 -2
@@ -58,7 +64,11 @@
 pullDownMenuKeepMenu                    true
 
 selectionHilightForegroundColor         Color white
+#if Display hasGrayscales
 selectionHilightBackgroundColor         Color blue
+#else
+selectionHilightBackgroundColor         Color black
+#endif
 selectionHilightFrameColor              Color black
 selectionRightArrowLevel                0
 selectionRightArrowStyle                #solid
@@ -86,6 +96,7 @@
 scrollerThumbColor                      =viewGrey
 scrollerThumbEdgeStyle                  #soft
 #else
+scrollerViewBackground                  Color grey:87.5
 scrollerThumbColor                      Color white
 #endif
 
@@ -96,11 +107,11 @@
 scrollerGhostFrameColor                 Color darkGrey
 scrollerSnapBack                        true
 
-buttonEdgeStyle                         #soft
 ;buttonActiveLevel                      1
 buttonActiveLevel                       -1 "/ 0
 buttonPassiveLevel                      2
 #if Display hasGreyscales
+buttonEdgeStyle                         #soft
 ; buttonActiveForegroundColor           Color black
 ; buttonActiveBackgroundColor           Color white
 ; buttonEnteredBackgroundColor          Color lightGrey
@@ -109,6 +120,7 @@
 #else
 buttonActiveBackgroundColor             Color black
 buttonActiveForegroundColor             Color white
+; buttonEnteredBackgroundColor            Color grey:87.5
 #endif
 
 arrowButtonUpFormFile                   'ScrollUp.w95.14.xbm'.