~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/xedit/Xedit-color.ad

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
! $XFree86: xc/programs/xedit/Xedit-color.ad,v 1.15 2002/11/13 04:35:45 paulo Exp $
 
2
 
 
3
#include "Xedit"
 
4
 
 
5
*background:                    gray70
 
6
*foreground:                    gray15
 
7
*borderColor:                   gray40
 
8
*Command.highlightThickness:    1
 
9
*Command.backgroundPixmap:      gradient:vertical?dimension=18&start=gray90&end=gray65
 
10
*Command.foreground:            gray20
 
11
*Command.displayList:\
 
12
foreground      gray92;\
 
13
line            1,0,-2,0;\
 
14
foreground      gray95;\
 
15
line            2,1,-3,1;\
 
16
foreground      gray74;\
 
17
segments        3,-3,-4,-3, 2,-4,-3,-4, 1,-6,-2,-6;\
 
18
point           -1,-1;\
 
19
foreground      gray80;\
 
20
line            0,0,0,-1;\
 
21
point           -1,0
 
22
 
 
23
*Command.translations:  #override \
 
24
<Btn1Down>:     set-values(1, foreground, gray20, background, rgb:d/5/5) set()\n\
 
25
Button1<Leave>: reset() set-values(1, foreground, gray20, background, gray70)\n\
 
26
<Btn1Up>:       notify() unset()
 
27
 
 
28
*Toggle.foreground:             gray30
 
29
*Toggle.background:             gray82
 
30
*Toggle.borderColor:            gray90
 
31
*Toggle.displayList:\
 
32
foreground      gray75;\
 
33
segments        0,1,0,-2,-1,1,-1,-2;\
 
34
foreground      gray80;\
 
35
segments        0,0,-1,0,0,-1,-1,-1;\
 
36
points          1,1,1,-2,-2,1, -2,-2
 
37
 
 
38
*bc_label.backgroundPixmap:     gradient:vertical?dimension=18&start=gray90&end=gray65
 
39
*bc_label.displayList:\
 
40
foreground      gray92;\
 
41
line            1,0,-2,0;\
 
42
foreground      gray95;\
 
43
line            2,1,-3,1;\
 
44
foreground      gray74;\
 
45
segments        3,-2,-4,-2, 2,-3,-3,-3, 1,-5,-2,-5
 
46
*bc_label.foreground:           gray20
 
47
 
 
48
*formWindow.backgroundPixmap:   gradient:vertical?dimension=18&start=gray90&end=gray65
 
49
*formWindow.displayList:\
 
50
foreground      gray92;\
 
51
line            1,0,-2,0;\
 
52
foreground      gray95;\
 
53
line            2,1,-3,1;\
 
54
foreground      gray74;\
 
55
segments        3,-2,-4,-2, 2,-3,-3,-3, 1,-5,-2,-5
 
56
*formWindow*backgroundPixmap:   ParentRelative
 
57
*formWindow*foreground:         gray20
 
58
*formWindow*background:         gray74
 
59
*formWindow.labelWindow.background:     gray80
 
60
*formWindow.labelWindow.displayList:\
 
61
line-style      onoffdash;\
 
62
foreground      gray30;\
 
63
background      gray96;\
 
64
draw-rect       3,2,15,14;\
 
65
foreground      gray78;\
 
66
fill-rect       4,3,15,14
 
67
 
 
68
*dirlabel.foreground:           gray20
 
69
*dirlabel.backgroundPixmap:     gradient:vertical?dimension=18&start=gray90&end=gray65
 
70
*dirlabel.displayList:\
 
71
foreground      gray92;\
 
72
line            1,0,-2,0;\
 
73
foreground      gray95;\
 
74
line            2,1,-3,1;\
 
75
foreground      gray74;\
 
76
segments        3,-2,-4,-2, 2,-3,-3,-3, 1,-5,-2,-5
 
77
*dirwindow.background:          gray96
 
78
 
 
79
*internalBorderColor:           gray40
 
80
 
 
81
*Text*Text.background:          gray96
 
82
*Text.background:               gray96
 
83
*Text.?.background:             gray96
 
84
*Text*cursorColor:              rgb:d/5/5
 
85
*Text.displayList:\
 
86
foreground      white;\
 
87
line            1,-1,-2,-1;\
 
88
foreground      gray88;\
 
89
line            1,0,-2,0
 
90
 
 
91
*Scrollbar.foreground:          rgb:a/5/5
 
92
*Scrollbar.background:          gray60
 
93
*Text.Scrollbar.background:     gray60
 
94
*Scrollbar.backgroundPixmap:    gradient:horizontal?dimension=14&start=gray70&end=gray85
 
95
*hScrollbar.backgroundPixmap:   gradient:vertical?dimension=14&start=gray85&end=gray70
 
96
*hScrollbar.displayList:\
 
97
foreground      gray85;\
 
98
segments        1,-1,-2,-1,1,0,-2,0
 
99
*vScrollbar.displayList:\
 
100
foreground      gray85;\
 
101
segments        0,1,0,-2,-1,1,-1,-2
 
102
*Scrollbar.thumb:               vlines2
 
103
*hScrollbar.thumb:              hlines2
 
104
 
 
105
*SimpleMenu*borderWidth:                0
 
106
*SimpleMenu*backgroundPixmap:   xlogo11?foreground=gray90&background=gray88
 
107
*SimpleMenu*background:         gray90
 
108
*SimpleMenu*foreground:         gray20
 
109
*SimpleMenu.VerticalMargins:    3
 
110
*SimpleMenu.HorizontalMargins:  3
 
111
*SimpleMenu.SimpleMenu.VerticalMargins: 3
 
112
*SimpleMenu.SimpleMenu.HorizontalMargins:       3
 
113
*SimpleMenu.menuLabel.foreground:       rgb:d/5/5
 
114
*SimpleMenu*displayList:\
 
115
foreground      gray70;\
 
116
lines           +2,-2,-2,-2,-2,+2;\
 
117
foreground      gray95;\
 
118
lines           -2,+1,+1,+1,+1,-2;\
 
119
foreground      gray30;\
 
120
lines           +1,-1,-1,-1,-1,+1;\
 
121
foreground      gray80;\
 
122
lines           -1,+0,+0,+0,+0,-1
 
123
 
 
124
*TransientShell.backgroundPixmap:       xlogo11?foreground=gray90&background=gray87
 
125
*TransientShell.Form.backgroundPixmap:          ParentRelative
 
126
*TransientShell.Form.Label.backgroundPixmap:    ParentRelative
 
127
 
 
128
*ispell*Scrollbar.borderColor:  gray50
 
129
*ispell*Scrollbar.displayList:
 
130
*ispell*List.background:        gray96
 
131
*ispell*word.background:        gray96
 
132
*ispell*word.backgroundPixmap:  XtUnspecifiedPixmap
 
133
*ispell*word.translations:\
 
134
<Enter>:        highlight()\n\
 
135
<Leave>:        reset()\n\
 
136
<Btn1Down>:     set()\n\
 
137
<Btn1Up>:       notify() unset()\n
 
138
*ispell*word.displayList:
 
139
*ispell.Form.Form.borderColor:  gray80
 
140
*ispell.Form.Form.displayList: \
 
141
foreground      gray90;\
 
142
lines           +1,-1,-1,-1,-1,+1;\
 
143
foreground      gray30;\
 
144
lines           -1,+0,+0,+0,+0,-1;\
 
145
foreground      gray60;\
 
146
lines           +2,-2,-2,-2,-2,+2
 
147
*ispell*status.backgroundPixmap:        XtUnspecifiedPixmap
 
148
*ispell*status.background:      gray96
 
149
*ispell*terse.justify:          right
 
150
*ispell*terse.internalWidth:    10
 
151
*ispell*terse.background:       gray75
 
152
*ispell*terse.foreground:       gray20
 
153
*ispell*terse.highlightThickness:       0
 
154
*ispell*terse.displayList:\
 
155
line-style      solid;\
 
156
foreground      gray70;\
 
157
fill-arc        6,4,14,12;\
 
158
foreground      gray90;\
 
159
draw-arc        6,4,14,12,45,180;\
 
160
draw-lines      +0,-1,-1,-1,-1,+0;\
 
161
foreground      gray50;\
 
162
draw-arc        6,4,14,12,225,180;\
 
163
draw-lines      -2,+0,+0,+0,+0,-2;\
 
164
foreground      gray45;\
 
165
dashes          2,1;\
 
166
line-style      onoffdash;\
 
167
draw-rect       +1,+1,-2,-2
 
168
*ispell*options.MenuButton.borderColor: gray70
 
169
*ispell*options.MenuButton.background:  gray78
 
170
*ispell*options.MenuButton.backgroundPixmap:    gradient:vertical?dimension=18&start=gray90&end=gray65
 
171
*ispell*options.MenuButton.displayList:\
 
172
foreground      gray60;\
 
173
lines           +2,-2,-2,-2,-2,+2;\
 
174
foreground      gray95;\
 
175
lines           -3,+1,+1,+1,+1,-3;\
 
176
foreground      gray78;\
 
177
points          -2,+1,+1,-2
 
178
 
 
179
*tip.foreground:        rgb:48/48/00
 
180
*tip.backgroundPixmap:  None
 
181
*tip.borderWidth:       0
 
182
*tip.rightMargin:       7
 
183
*tip.bottomMargin:      3
 
184
*tip.displayList:\
 
185
foreground      rgb:f/e/8;\
 
186
fill-rect       1,1,-2,-2;\
 
187
foreground      rgb:d/c/6;\
 
188
draw-segments   0,1,0,-3,1,-2,-3,-2,-2,-3,-2,1,-3,0,1,0;\
 
189
foreground      rgb:a/8/4;\
 
190
draw-lines      2,-1, -2,-1, -1,-2, -1,2
 
191
 
 
192
*grip.foreground:       gray10
 
193
*grip.displayList:\
 
194
foreground      gray80;\
 
195
points          0,0,0,-1,-1,-1,-1,0