styles/os2.style
changeset 152 17cc0709e898
parent 144 cf645a1ebbb3
child 309 8cc4d0e7b41b
--- a/styles/os2.style	Tue Jun 06 06:09:07 1995 +0200
+++ b/styles/os2.style	Tue Jun 06 06:11:58 1995 +0200
@@ -2,7 +2,7 @@
 ;
 ; this is not yet completed
 ;
-; $Header: /cvs/stx/stx/libview/styles/os2.style,v 1.2 1995-05-16 17:16:50 claus Exp $
+; $Header: /cvs/stx/stx/libview/styles/os2.style,v 1.3 1995-06-06 04:11:49 claus Exp $
 
 comment  'OS/2 look alike'
 
@@ -11,10 +11,24 @@
 
 ; viewGrey                  Color grey:80
 ; darkerGrey                Color grey:67
+
+
+#if Display hasColors 
+yellow                    Color red:100 green:100 blue:70
+#else
+yellow                    Color white
+#endif
+
+#if Display hasGreyscales  
 viewGrey                  Color grey:67 
+brighterGrey              Color grey:80 
 darkerGrey                Color grey:50 
-yellow                    Color red:100 green:100 blue:70
-
+#else
+yellow                    Color white
+viewGrey                  Color white 
+brighterGrey              Color white 
+darkerGrey                Color white 
+#endif
 
 borderWidth               0
 viewBackground            =viewGrey
@@ -34,23 +48,29 @@
 scrollerThumbColor        =viewGrey
 scrollerThumbLevel        1
 scrollerThumbInset        0
+;scrollerThumbInset        1
 
 buttonEdgeStyle                 #soft
 buttonActiveLevel               -1
 buttonPassiveLevel              3
 buttonReturnButtonHasBorder     true
-buttonActiveBackgroundColor     =darkerGrey
+; buttonActiveBackgroundColor     =darkerGrey
+#if Display hasGreyscales 
+buttonActiveBackgroundColor     =brighterGrey
+#else
+buttonActiveBackgroundColor     Color black
+buttonActiveForegroundColor     Color white
+#endif
 
-textCursorType            #solidCaret
-textCursorBackgroundColor Color black
+textCursorType                  #solidCaret
+textCursorBackgroundColor       Color black
 
-popupShadow               true
-popupShadowColor          Color black
-popupBorderWidth          1     
+popupShadow                     true
+popupShadowColor                Color black
+popupBorderWidth                1     
 
 arrowButtonStyle                  #os2 
 arrowButtonForegroundColor        Color black
-arrowButtonActiveForegroundColor  Color white
 arrowButtonActiveBackgroundColor  =viewGrey
 arrowButtonUpFormFile             'ScrollUp.os2.14.xbm'.
 arrowButtonDownFormFile           'ScrollDn.os2.14.xbm'.
@@ -59,39 +79,61 @@
 arrowButtonActiveLevel            -1 "/ 0
 arrowButtonPassiveLevel           1
 
+#if Display hasGreyscales 
 buttonDisabledForegroundColor     Color white
+arrowButtonActiveForegroundColor  Color white
+#else
+buttonDisabledForegroundColor     Color grey
+arrowButtonActiveForegroundColor  Color grey
+#endif
 
 checkToggleCheckColor             Color black
+#if Display hasGreyscales not
+checkToggleActiveBackgroundColor  Color white
+#endif
 
-selectionFont                           =fatFont
-labelFont                               =thinFont
+selectionFont                     =fatFont
+labelFont                         =thinFont
 
-selectionBackgroundColor                =yellow
-selectionHilightForegroundColor         Color white
-selectionHilightBackgroundColor         Color grey:50
-selectionHilightFrameColor              Color grey:25
-selectionHilightLevel                   0
-selectionRightArrowLevel                0
+selectionBackgroundColor          =yellow
+selectionHilightForegroundColor   Color white
+#if Display hasGreyscales
+selectionHilightBackgroundColor   Color grey:50
+#else
+selectionHilightBackgroundColor   Color black
+#endif
+selectionHilightFrameColor        Color grey:25
 
-editFieldBackgroundColor                =yellow
-editFieldSelectionBackgroundColor       Color black
-editFieldSelectionForegroundColor       Color white
+selectionHilightLevel             0
+selectionRightArrowLevel          0
+
+editFieldBackgroundColor            =yellow
+editFieldSelectionBackgroundColor   Color black
+editFieldSelectionForegroundColor   Color white
 
 ;
 ; since menus inherit from selectionInList,
 ; redefine the yellow settings ...
 ;
-menuBackgroundColor                     =viewGrey
-menuShadowColor                         =menuBackgroundColor darkened
-menuLightColor                          =menuBackgroundColor lightened
-menuHilightForegroundColor              Color white
-menuHilightBackgroundColor              =darkerGrey
-menuHilightLevel                        2
-menuViewBackground                      =viewGrey
+menuBackgroundColor                 =viewGrey
+menuShadowColor                     =menuBackgroundColor darkened
+menuLightColor                      =menuBackgroundColor lightened
+; menuHilightForegroundColor        Color white
+; menuHilightBackgroundColor        =darkerGrey
+#if Display hasGreyscales
+menuHilightFrameColor               nil
+menuHilightLevel                    -1
+#else
+menuHilightFrameColor               Color black
+menuHilightLevel                    0
+#endif
+menuViewBackground                  =viewGrey
+menuSeparatingLineLevel             0
 
-pullDownMenuFont                        =selectionFont
-pullDownMenuSeparatingLines             false
-pullDownMenuLevel                       0
-pullDownMenuHilightLevel                2
-pullDownMenuKeepMenu                    true
-; pullDownMenuToggleKeep                  true
+pullDownMenuFont                    =selectionFont
+pullDownMenuSeparatingLines         false
+pullDownMenuLevel                   0
+pullDownMenuHilightLevel            -1
+pullDownMenuHilightForegroundColor  Color black
+pullDownMenuKeepMenu                true
+; pullDownMenuToggleKeep              true