styles/mswindowsXP.style
author Claus Gittinger <cg@exept.de>
Thu, 14 Oct 2004 14:18:22 +0200
changeset 4301 69768f574e4c
parent 4300 b33bbdb036e5
child 4302 4ff29a2bbb07
permissions -rw-r--r--
''

; View defaultStyle:#mswindowsXP
;
; $Header: /cvs/stx/stx/libview/styles/mswindowsXP.style,v 1.10 2004-10-14 12:18:22 cg Exp $

name                            #winXP

;
; for now, much like win95, except for some menuPanel details
; scrollbars are to come ...
;
.
;
; notice: the values below
; are not used when running under native Windows
; (uses system-settings values then)
;
#if Screen current hasGreyscales

selectionBlue                   (Color red:0 green:0 blue:50) exactOrNearestOn:(Screen current)

viewGrey                        (Color redByte:241 greenByte:242 blueByte:239) exactOrNearestOn:(Screen current)
viewLightGrey                   Color white
lightColor                      Color white
halfShadowColor                 (Color grey:80) exactOrNearestOn:(Screen current)
halfLightColor                  =viewGrey
shadowColor                     (Color grey:50) exactOrNearestOn:(Screen current)

#else

selectionBlue                   Color black
viewGrey                        Color white
viewLightGrey                   Color white
lightColor                      Color grey:50
shadowColor                     Color black

#endif

#if Screen current platformName = 'WIN32'

selectionBlue                   [Screen current getSystemColor:#'COLOR_HIGHLIGHT']
menu.backgroundColor            [Screen current getSystemColor:#'COLOR_MENU'     ]
menu.foregroundColor            [Screen current getSystemColor:#'COLOR_MENUTEXT' ]
pullDownMenu.backgroundColor    =menu.backgroundColor
viewGrey                        [Screen current getSystemColor:#'COLOR_BTNFACE'  ]

#endif

#include 'mswindows95.common'
name                            #winXP

comment  'winXP lookalike (smarty design; experimental)'

#if (Language == #german) or:[Language == #de]
comment  'an MS WindowsXP angelehnter Stil'
#endif

#if (Language == #french) or:[Language == #fr]
comment  'Un style qui résemble MS WindowsXP'
#endif

menu.enteredLevel               0
; menu.buttonEnteredLevel         2   "/ sigh - does not work

;; enable this, when old menuView cares for it also
;; menu.itemMargin                 1
menu.selectionFollowsMouse      true
menu.enteredBackgroundColor     =menu.hilightBackgroundColor
menu.enteredForegroundColor     =menu.hilightForegroundColor

;button.edgeStyle                 #soft
;button.activeLevel               -1
;button.passiveLevel              3
;button.enteredBackgroundColor    [ (Screen current getSystemColor:#'COLOR_BTNFACE') lightened ]

comboView.downFormFile                  'ComboDn_xp.xpm'.
comboView.disabledDownFormFile          'ComboDn_disabled_xp.xpm'.
comboView.activeDownFormFile            'ComboDn_active_xp.xpm'.
comboView.enteredDownFormFile           'ComboDn_entered_xp.xpm'.
comboView.button.activeLevel            0
comboView.button.passiveLevel           0
comboView.button.activeBackgroundColor  =viewGrey
; comboView.button.activeBackgroundColor  (Color white)
; comboView.button.backgroundColor        (Color white)
; comboView.level                         0

selection.highlightEnterItem       true         "/ underline-highlight item under cursor

scroller.viewBackground          (Color redByte:16rFB greenByte:16rFB blueByte:16rF9)
scroller.thumbColor              (Color redByte:175 greenByte:190 blueByte:240) slightlyLightened
scroller.thumbLightColor         (Color redByte:16rCF greenByte:16rDD blueByte:16rFD)
scroller.thumbShadowColor        (Color redByte:16r83 greenByte:16r9E blueByte:16rD8)
scroller.thumbEnteredColor       (Color redByte:175 greenByte:190 blueByte:240) lightened
scroller.thumbActiveColor        (Color red:64 green:75 blue:98)
scroller.thumbLevel              0
scroller.thumbInset              1
scroller.thumbFrameColor         Color white "/ (Color redByte:175 greenByte:190 blueByte:240) darkened
scroller.thumbEdgeStyle          #edged
scroller.NTallyMarks             4
scroller.tallyLevel              1
scroller.tallyInset              4
scroller.tallyDistance           2
scroller.snapBackDistance        100
scroller.minThumbSize            16

arrowButton.upFormFile            'ScrollUp.xp.xpm'
arrowButton.enteredUpFormFile     'ScrollUp_entered.xp.xpm'
arrowButton.activeUpFormFile      'ScrollUp_active.xp.xpm'
arrowButton.disabledUpFormFile    'ScrollUp_disabled.xp.xpm'

arrowButton.downFormFile          'ScrollDn.xp.xpm'
arrowButton.enteredDownFormFile   'ScrollDn_entered.xp.xpm'
arrowButton.activeDownFormFile    'ScrollDn_active.xp.xpm'
arrowButton.disabledDownFormFile  'ScrollDn_disabled.xp.xpm'

arrowButton.leftFormFile          'ScrollLt.xp.xpm'
arrowButton.enteredLeftFormFile   'ScrollLt_entered.xp.xpm'
arrowButton.activeLeftFormFile    'ScrollLt_active.xp.xpm'
arrowButton.disabledLeftFormFile  'ScrollLt_disabled.xp.xpm'

arrowButton.rightFormFile         'ScrollRt.xp.xpm'
arrowButton.enteredRightFormFile  'ScrollRt_entered.xp.xpm'
arrowButton.activeRightFormFile   'ScrollRt_active.xp.xpm'
arrowButton.disabledRightFormFile 'ScrollRt_disabled.xp.xpm'

arrowButton.passiveLevel          0
arrowButton.activeLevel           0
arrowButton.backgroundColor       =scroller.viewBackground
arrowButton.activeBackgroundColor =scroller.viewBackground

noteBook.backgroundColor          Color redByte:240 greenByte:240 blueByte:240
noteBook.foregroundColor          Color black
noteBook.lightColor               Color redByte:150 greenByte:150 blueByte:150
noteBook.shadowColor              Color redByte:150 greenByte:150 blueByte:150
noteBook.passiveBackgroundColor   Color redByte:230 greenByte:230 blueByte:230