18db30ca8Sthorpej! SshAskpass.ad:  Default resources for the X11-based ssh-askpass for OpenSSH
2c056561aSmbalmer! created 1999-Nov-17 03:40 Jim Knoble <jmknoble@jmknoble.cx>
3c056561aSmbalmer! autodate: 2000-Nov-07 05:50
48db30ca8Sthorpej! 
5c056561aSmbalmer! by Jim Knoble <jmknoble@jmknoble.cx>
6c056561aSmbalmer! Copyright (C) 1999,2000 Jim Knoble
78db30ca8Sthorpej! 
88db30ca8Sthorpej! Disclaimer:
98db30ca8Sthorpej! 
108db30ca8Sthorpej! The software is provided "as is", without warranty of any kind,
118db30ca8Sthorpej! express or implied, including but not limited to the warranties of
128db30ca8Sthorpej! merchantability, fitness for a particular purpose and
138db30ca8Sthorpej! noninfringement. In no event shall the author(s) be liable for any
148db30ca8Sthorpej! claim, damages or other liability, whether in an action of
158db30ca8Sthorpej! contract, tort or otherwise, arising from, out of or in connection
168db30ca8Sthorpej! with the software or the use or other dealings in the software.
178db30ca8Sthorpej! 
188db30ca8Sthorpej! Permission to use, copy, modify, distribute, and sell this software
198db30ca8Sthorpej! and its documentation for any purpose is hereby granted without
208db30ca8Sthorpej! fee, provided that the above copyright notice appear in all copies
218db30ca8Sthorpej! and that both that copyright notice and this permission notice
228db30ca8Sthorpej! appear in supporting documentation.
238db30ca8Sthorpej! 
248db30ca8Sthorpej
258db30ca8Sthorpej! +--------------------+
268db30ca8Sthorpej! | NEXTstep-ish theme |
278db30ca8Sthorpej! +--------------------+
288db30ca8Sthorpej
298db30ca8Sthorpej*Dialog.font:			-adobe-helvetica-medium-r-normal-*-*-120-*-*-*-*-iso8859-1
30c056561aSmbalmer*?.foreground:			rgb:00/00/00
31c056561aSmbalmer*?.background:			rgb:a8/a8/a8
32c056561aSmbalmer*topShadowColor:		rgb:ff/ff/ff
33c056561aSmbalmer*bottomShadowColor:		rgb:54/54/54
34c056561aSmbalmer*borderColor:			rgb:20/20/20
358db30ca8Sthorpej*shadowThickness:		0
368db30ca8Sthorpej*borderWidth:			1
378db30ca8Sthorpej*horizontalSpacing:		8
388db30ca8Sthorpej*verticalSpacing:		8
398db30ca8Sthorpej
408db30ca8Sthorpej*Button.font:			-adobe-helvetica-medium-r-normal-*-*-120-*-*-*-*-iso8859-1
418db30ca8Sthorpej*Button.shadowThickness:	1
428db30ca8Sthorpej*Button.borderWidth:		1
438db30ca8Sthorpej*Button.horizontalSpacing:	8
448db30ca8Sthorpej*Button.verticalSpacing:	3
458db30ca8Sthorpej
46c056561aSmbalmer*Indicator.foreground:		rgb:9b/cd/9b
47c056561aSmbalmer*Indicator.background:		rgb:54/54/54
48c056561aSmbalmer*Indicator.topShadowColor:	rgb:ff/ff/ff
49c056561aSmbalmer*Indicator.bottomShadowColor:	rgb:20/20/20
508db30ca8Sthorpej*Indicator.shadowThickness:	1
518db30ca8Sthorpej*Indicator.borderWidth:		0
528db30ca8Sthorpej*Indicator.height:		7
538db30ca8Sthorpej*Indicator.width:		15
548db30ca8Sthorpej*Indicator.horizontalSpacing:	4
558db30ca8Sthorpej*Indicator.verticalSpacing:	6
568db30ca8Sthorpej*Indicator.minimumCount:	8
578db30ca8Sthorpej*Indicator.maximumCount:	24
588db30ca8Sthorpej
59c056561aSmbalmer! X11 does a miserable job of providing resolution-independent drawing
60c056561aSmbalmer! facilities---it expects everything to be done in pixels.  So if you
61c056561aSmbalmer! happen to run your X server at a resolution of 100 pixels per inch
62c056561aSmbalmer! (or some other strange value) instead of the widely used default of
63c056561aSmbalmer! 75, x11-ssh-askpass looks might tiny.  [Sigh].
64c056561aSmbalmer! 
65c056561aSmbalmer! To get around this, umm, limitation, we declare the resolution that
66c056561aSmbalmer! the spacing and width/height pixels values are "valid" for, along
67c056561aSmbalmer! with a fuzz factor.  If the current actual resolution is outside of
68c056561aSmbalmer! the range of <DEFAULT - FUZZ>..<DEFAULT + FUZZ>, then we scale pixel
69c056561aSmbalmer! measurements to fit the actual resolution.
70c056561aSmbalmer! 
71c056561aSmbalmer! (And if you think *this* is a horrid hack, then take a look at the
72c056561aSmbalmer! actual code, which has to deal with conversion to [cheesy fanfare]
73c056561aSmbalmer! that's right---millimeters!!!  The right hand managed to slip that
74c056561aSmbalmer! one in while the left hand was adding a '-dpi' switch to the sample
75c056561aSmbalmer! server implementation.  I think both left feet were adding the
76c056561aSmbalmer! RESOLUTION_X and RESOLUTION_Y fields [in dots per inch, naturally]
77c056561aSmbalmer! to the X Logical Font Description.  The irony is underwhelming.)
78c056561aSmbalmer
79c056561aSmbalmer*defaultXResolution:		75/in
80c056561aSmbalmer*defaultYResolution:		75/in
81c056561aSmbalmer*xResolutionFuzz:		20/in
82c056561aSmbalmer*yResolutionFuzz:		20/in
83c056561aSmbalmer
84c056561aSmbalmer! Number of seconds to wait for a key- or button-press
85c056561aSmbalmer! before giving up.  '0' means wait forever.
86c056561aSmbalmer*inputTimeout:			0
87c056561aSmbalmer
888db30ca8Sthorpej! Ssh-askpass grabs the keyboard by default.
898db30ca8Sthorpej! To stop it from grabbing the keyboard, use:
908db30ca8Sthorpej!*grabKeyboard:			false
918db30ca8Sthorpej
928db30ca8Sthorpej! Ssh-askpass does not grab the pointer by default.
938db30ca8Sthorpej! To make it grab the pointer, use:
948db30ca8Sthorpej!*grabPointer:			true
958db30ca8Sthorpej
968db30ca8Sthorpej! Ssh-askpass does not grab the server by default.
978db30ca8Sthorpej! To make it grab the server, use:
988db30ca8Sthorpej!*grabServer:			true
998db30ca8Sthorpej
100c056561aSmbalmer*Dialog.title:			OpenSSH Authentication Passphrase Request
1018db30ca8Sthorpej*Dialog.label:			Please enter your authentication passphrase:
1028db30ca8Sthorpej*okButton.label:		OK
1038db30ca8Sthorpej*cancelButton.label:		Cancel
1048db30ca8Sthorpej
105