! Defaults for X
!  --  You can use "editres" to change the buttons, fonts, background
!  and foreground colors very easily. Start xboard and editres, in
!  editres go under "Commands" and select "Get Tree", the cursor change
!  to a cross-hair, click with the mouse anywhere in the xboard-window
!  and you get the complete tree in editres. Now in editres go under
!  "Tree" and select "Select Widget in Client", again the cursor turns
!  into a cross-hair, select say for example the "File" button in xboard,
!  editres update his view and show you the "File" button. Here the fun
!  begins :-) Go under "Commands" and click on "Show Resource Box". A new
!  window pops up with all the values you can change. Click for example
!  on "background" and enter a value in the box at the bottom like "pink"
!  :-) Click on "Apply" and the "File" button in xboard turns to pink.
!  Experiment with it, and I'm pretty sure you come up with something you
!  like. You can save your changes in a file with "Set Save File" and
!  after every value change with "Save and Apply".
!
!----------------------------------------------------------------------
! Mouse coursor
!----------------------------------------------------------------------
!Xcursor.theme: BlueCurve
Xcursor.theme: Jaguar

! specify the screen resolution
Xft.dpi:75

!----------------------------------------------------------------------
! Basic Athena Setup
!----------------------------------------------------------------------

! Defining some colours:
#define TextFG rgb:10/10/10
#define TextBG rgb:d0/d0/d0
#define DarkBG rgb:80/80/80

#define ColourBG rgb:f6/f7/dd
#define ButtonBG rgb:a8/a8/a8
#define PanelBG  rgb:a8/a8/a8

! Defining some Fonts:
#define FONT                    screen-14
#define BOLDFONT                screen-bold-14
#define IFONT                   fixed-italic-14
#define MONOFONT                lucidasanstypewriter-12
#define MBFONT                  lucidasanstypewriter-bold-12

#define CONSOLEFONT1  -sgi-screen-medium-*-*-*-15-*-*-*-*-*-*-*
#define CONSOLEFONT2  -sgi-screen-medium-*-*-*-15-*-*-*-*-*-*-*
#define CONSOLEFONT3  -sgi-screen-medium-*-*-*-15-*-*-*-*-*-*-*
#define CONSOLEFONT4  -sgi-screen-medium-*-*-*-15-*-*-*-*-*-*-*
#define CONSOLEFONT5  -sgi-screen-medium-*-*-*-15-*-*-*-*-*-*-*

#define CONSOLESMALL  -sgi-screen-medium-*-*-*-12-*-*-*-*-*-*-*
#define CONSOLETINY   -sgi-screen-medium-*-*-*-10-*-*-*-*-*-*-*

*Scrollbar.foreground          : DarkBG
*Scrollbar.background          : ButtonBG
*Scrollbar.cursorName          : top_left_arrow
*Scrollbar.borderWidth         :         1
*Scrollbar.shadowWidth         :         2
*Scrollbar.thickness           :        18
*Scrollbar.minimumThumb        :        12
!for neXtaw:              
*Scrollbar*initialDelay        :       150
*Scrollbar*repeatDelay         :        50
*Toggle.ToggleStyle            : check
                          
*Command.background            : ButtonBG
*Command.borderWidth           :         1
*Command.highlightThickness    :         1
*Command.shadowWidth           :         2

*Composite.background          : ColourBG
*Constraint.background         : ColourBG
*Core.background               : ColourBG

*Form.borderColor              : DarkBG
*Form.background               : PanelBG
                              
*Label.borderColor             : PanelBG
*Label.background              : PanelBG
*Label.shadowWidth             :         0
*Label.borderWidth             :         0

*borderColor                   : DarkBG
*borderWidth                   :         1

*internalBorderColor           : DarkBG

*Box.background                : PanelBG
*Dialog.background             : PanelBG
*Paned.background              : PanelBG
*Panner.background             : PanelBG

*MenuButton.background         : ButtonBG
*Repeater.background           : ButtonBG
*Toggle.background             : ButtonBG

! Apply better (and common) fonts
*AsciiSink.font                : FONT
*Command.font                  : FONT
*Label.font                    : FONT
*List.font                     : FONT
*MenuButton.font               : FONT
*RgbSink.font                  : MONOFONT
*SmeBSB.font                   : FONT
*Toggle.font                   : FONT

! Buttons and Widgets
*shapeStyle                    : Rectangle
*beNiceToColormap              : False
*topShadowContrast             :         100
*bottomShadowContrast          :         100

! 3D doesn't work with Athena that good, so disable it
*shadowWidth                   :           2
*highlightThickness            :           1

! Grip foreground must be set to the same color as Paned background
*Grip.foreground               : ColourBG
*Layout.background             : ColourBG
*List.background               : ColourBG

*Object.background             : ColourBG
*OverrideShell.background      : ColourBG
*Porthole.background           : ColourBG
*Rect.background               : ColourBG

*Simple.background             : ColourBG

*SimpleMenu.background         : PanelBG
*SimpleMenu.shadowWidth        :           2

*Sme.background                : ColourBG
*SmeLine.background            : ColourBG
*SmeBSB.background             : ColourBG
*SmeBSB.highlightThickness     :           1
*SmeBSB.shadowWidth            :           2
*Sme.highlightThickness        :           1
*Sme.shadowWidth               :           2

*MenuButton.borderWidth        :           1
*MenuButton.highlightThickness :           1
*MenuButton.shadowWidth        :           2

*ThreeD.background             : ColourBG

*Toggle.borderWidth            :           1
*Toggle.highlightThickness     :           1
*Toggle.shadowWidth            :           2

*TopLevelShell.background:      ColourBG
*TransientShell.background:     ColourBG
*Tree.background:               ColourBG
*VendorShell.background:        ColourBG
*Viewport.background:           ColourBG
*WmShell.background:            ColourBG

*StripChart.background         : ColourBG

*Text.background               : ColourBG
*Text.textSink.background      : ColourBG
*Text.search.form.Toggle.toggleStyle: radio
*Text.translations:         #override \
        <Key>Home:          beginning-of-line() \n\
        <Key>KP_Home:       beginning-of-line() \n\
        <Key>End:           end-of-line() \n\
        <Key>KP_End:        end-of-line() \n\
        <Key>Delete:        delete-next-character() \n\
        <Key>KP_Delete:     delete-next-character() \n\
        !Ctrl<Key>Left:     backward-word() \n\
        !Ctrl<Key>KP_Left:  backward-word() \n\
        !Ctrl<Key>Right:    forward-word() \n\
        !Ctrl<Key>KP_Right: forward-word() \n\


!======================================================================

!----------------------------------------------------------------------
! XBoard
!----------------------------------------------------------------------
xboard*highlight: True
xboard*colorizeMessages: true
xboard*colorShout: green
xboard*colorSShout: green, black, 1
xboard*colorChannel1: cyan
xboard*colorChannel: cyan, black, 1
xboard*colorKibitz: magenta, black
xboard*colorTell: yellow, black, 1
xboard*colorChallenge: red, black, 1
xboard*colorRequest: red
xboard*colorSeek: blue
xboard*colorNormal: default

! Using a name:
xboard*boardSize: 80,2
! Using parameters: piece size, border thickness
! xboard*boardSize: 72,2
xboard*highlightSquareColor: yellow
xboard*whitePieceColor: #ffffd7
xboard*blackPieceColor: #1d1d1d

xboard*clockFont: -*-helvetica-bold-*-*-*-24-*-*-*-*-*-*-*
xboard*coordFont: -sgi-screen-medium-*-*-*-10-*-*-*-*-*-*-*
xboard*showButtonBar: false
xboard*telnetProgram: /opt/chess/bin/timeseal.Linux

! Highlight the last move and flash the piece
xboard*highlightLastMove: true
xboard*flashCount: 3
xboard*flashRate: 5

! Use crafty as chess program not gnuchess
xboard*firstChessProgram: crafty
xboard*firstDirectory: /home/arwagner/GNUstep/Chess

!----------------------------------
! Shredder Plain Colour Schemes
!----------------------------------
! # Brown
! xboard*lightSquareColor: #ffdbc6
! xboard*darkSquareColor : #9c5d42
! 
! # Grey
! xboard*lightSquareColor: #dedfde
! xboard*darkSquareColor : #848284
! 
! # Green
! xboard*lightSquareColor: #e7e3c6
! xboard*darkSquareColor : #4aa24a
!
! ! Blue
! Pixel Values: 156, 195, 239     57, 121, 173
! RGB         : 61%, 76%, 94%    22%, 47%, 68%
! HSV         : 212, 35%, 94%    207, 67%, 68%
! xboard*lightSquareColor: #9cc3ef
! xboard*darkSquareColor : #3979ad

!----------------------------------

!----------------------------------
! Fritz8 Plain Colour Schemes
!----------------------------------
! # Default:
! xboard*lightSquareColor: #efefef
! xboard*darkSquareColor : #7386b5
! .xboard*background: #d6d3ce
! 
! # Elegant:
! xboard*lightSquareColor: #efefef
! xboard*darkSquareColor : #7ba2a5
! .xboard*background: #ffe3c6
! 
! # Vert:
! xboard*lightSquareColor: #d6ebd6
! xboard*darkSquareColor : #428284
! .xboard*background: #ffe3c6
!----------------------------------

!----------------------------------
! Various Plain Colour Schemes
!----------------------------------
! ! Nimzo:
! xboard*lightSquareColor: #efbadb
! xboard*darkSquareColor : #ad6963
!
! ! Hiarcs:
! xboard*lightSquareColor: #e7e3c6
! xboard*darkSquareColor : #4aa24a
!
! ! Fritz5:
! xboard*lightSquareColor: #e7d3a5
! xboard*darkSquareColor : #a57d5a
!----------------------------------

! ! Default Board: 
! ! Pixel Values: 198, 195, 99     115, 162, 107
! ! RGB         : 78%, 76%, 39%    45%, 64%, 42%
! ! HSV         :  58, 50%, 78%    111, 34%, 64%
xboard*lightSquareColor: #c8c365
xboard*darkSquareColor : #77a26d
xboard*background: PanelBG
! xboard*pixmapDirectory: /opt/chess/share/xboard/Themes/Merida-LightWood1

xboard*soundShout        : /opt/chess/share/xboard/shout.wav
xboard*soundSShout       : /opt/chess/share/xboard/sshout.wav
xboard*soundChannel1     : /opt/chess/share/xboard/channel1.wav
xboard*soundChannel      : /opt/chess/share/xboard/channel.wav
xboard*soundKibitz       : /opt/chess/share/xboard/kibitz.wav
xboard*soundTell         : /opt/chess/share/xboard/tell.wav
xboard*soundChallenge    : /opt/chess/share/xboard/challenge.wav
xboard*soundRequest      : /opt/chess/share/xboard/request.wav
xboard*soundSeek         : /opt/chess/share/xboard/seek.wav
xboard*soundMove         : /opt/chess/share/xboard/move.wav
xboard*soundIcsWin       : /opt/chess/share/xboard/win.wav
xboard*soundIcsLoss      : /opt/chess/share/xboard/lose.wav
xboard*soundIcsDraw      : /opt/chess/share/xboard/draw.wav
xboard*soundIcsUnfinished: /opt/chess/share/xboard/unfinished.wav
xboard*soundIcsAlarm     : /opt/chess/share/xboard/alarm.wav

xboard*autoCallFlag: false
xboard*soundProgram: play -q

!and finaly the buttons and clock
xboard*MenuButton*Justify:    left
xboard*MenuButton*MenuButtonStyle: simple
xboard*message*background: ColourBG
xboard*.form.text.background: ColourBG

.xboard.normalLayout.form.menuBar.Action.background   : orange3
.xboard.normalLayout.form.menuBar.File.foreground     : black
.xboard.normalLayout.form.menuBar.Mode.foreground     : black
.xboard.normalLayout.form.menuBar.Action.foreground   : black
.xboard.normalLayout.form.menuBar.Step.foreground     : black
.xboard.normalLayout.form.menuBar.Options.foreground  : black
.xboard.normalLayout.form.menuBar.Help.foreground     : black
.xboard.normalLayout.form.buttonBar.Command.foreground: black

XBoard*form.translations: \
 Ctrl<Key>?: AboutProc() \n\
 Ctrl<Key>q: QuitProc() \n\
     <Key>?: AboutGameProc() \n\
     <Key>a: AnalysisModeProc() \n\
     <Key>b: BlindfoldProc() \n\
     <Key>d: DrawProc() \n\
     <Key>f: FlipViewProc() \n\
     <Key>i: IcsInputBoxProc() \n\
     <Key>m: MailMoveProc() \n\
     <Key>r: RematchProc() \n\
     <Key>s: SaveGameProc() \n\
     <Key>n: DeclineProc() \n\
     <Key>y: AcceptProc() \n\
     <Key>Up: ToStartProc() \n\
     <Key>Down: ToEndProc() \n\
     <Key>Left: BackwardProc() \n\
     <Key>Right: ForwardProc() \n\
 Ctrl<Key>Left: ToStartProc() \n\
 Ctrl<Key>Right: ToEndProc() \n\
 Ctrl<Key>Delete: CopyPositionProc() \n\
 Meta<Key>Delete: CopyGameProc()
 Ctrl<Key>Insert: PastePositionProc() \n\
 Meta<Key>Insert: PasteGameProc()
