-
Notifications
You must be signed in to change notification settings - Fork 19
/
cGraphBkgColorEditor.dfm
458 lines (458 loc) · 11.7 KB
/
cGraphBkgColorEditor.dfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
object frmBorderEditor: TfrmBorderEditor
Left = 829
Top = 286
BorderIcons = [biSystemMenu]
BorderStyle = bsDialog
Caption = 'Automatic background color settings'
ClientHeight = 423
ClientWidth = 550
Color = clBtnFace
Constraints.MinHeight = 380
Constraints.MinWidth = 480
DoubleBuffered = True
ParentFont = True
Position = poDesigned
ScreenSnap = True
ShowHint = True
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
TextHeight = 15
object Container: TPanel
AlignWithMargins = True
Left = 3
Top = 3
Width = 544
Height = 376
Align = alClient
Anchors = []
BevelOuter = bvNone
ParentColor = True
TabOrder = 0
DesignSize = (
544
376)
object lblWarning: TLabel
AlignWithMargins = True
Left = 3
Top = 3
Width = 538
Height = 30
Hint = #39'Fade to color'#39' is CPU hungry'
Align = alTop
Alignment = taCenter
Caption =
'Attention: This effect looks nice but it is CPU hungry!'#13#10'The pro' +
'gram might need a few seconds to process the image.'
Color = 11599867
ParentColor = False
Transparent = True
Visible = False
WordWrap = True
end
object btnReset: TButton
Left = 502
Top = 4
Width = 40
Height = 19
Anchors = [akTop, akRight]
Caption = 'Reset'
TabOrder = 4
Visible = False
OnClick = btnResetClick
end
object grpFillFade: TGroupBox
Left = 277
Top = 40
Width = 237
Height = 298
Anchors = []
Caption = 'Fill/Fade'
TabOrder = 2
DesignSize = (
237
298)
object radFade: TRadioButton
Left = 19
Top = 62
Width = 169
Height = 16
Hint = 'Note: This feature will slow down the program A LOT!'
Caption = 'Fade to color (color transition)'
TabOrder = 0
OnClick = SettingsChanged
end
object radFill: TRadioButton
Left = 19
Top = 36
Width = 143
Height = 16
Hint = 'This uses less CPU than "Fade to color".'
Caption = 'Solid color (no transition)'
Checked = True
TabOrder = 1
TabStop = True
OnClick = SettingsChanged
end
object grpFadeParams: TGroupBox
Left = 29
Top = 97
Width = 195
Height = 178
Anchors = [akRight]
Caption = 'Fade parameters'
TabOrder = 2
Visible = False
object lblFadeSpeed: TLabel
Left = 92
Top = 50
Width = 59
Height = 15
Caption = 'Fade speed'
Transparent = True
end
object lblEdgeSmear: TLabel
Left = 92
Top = 78
Width = 61
Height = 15
Caption = 'Edge smear'
Transparent = True
end
object lblNeighborWeight: TLabel
Left = 92
Top = 107
Width = 96
Height = 15
Caption = 'Neighbour weight'
Transparent = True
end
object lblFuzzy: TLabel
Left = 92
Top = 136
Width = 52
Height = 15
Caption = 'Fuzzyness'
Transparent = True
end
object spnNeighborWeight: TSpinEdit
Left = 32
Top = 104
Width = 53
Height = 24
Hint =
'Weight of the Neighbour pixels.'#13#10'Default: 100'#13#10'Recommended range' +
': 98-101'
MaxValue = 150
MinValue = 80
TabOrder = 2
Value = 100
OnChange = SettingsChanged
end
object spnFallSpeed: TSpinEdit
Left = 32
Top = 46
Width = 53
Height = 24
Hint =
'This value tells how slow the transition between the edges of th' +
'e images and the background color should be. '#13#10'The higher the va' +
'lue the faster the transition.'#13#10'Default: 200'
MaxValue = 400
MinValue = 0
TabOrder = 0
Value = 200
OnChange = SettingsChanged
end
object spnNeighborDistance: TSpinEdit
Left = 32
Top = 133
Width = 55
Height = 24
Hint = 'Neighbour distance (fuzzyness).'#13#10'Default: 2'
AutoSize = False
MaxValue = 10
MinValue = 0
TabOrder = 3
Value = 2
OnChange = SettingsChanged
end
object spnEdgeSmear: TSpinEdit
Left = 32
Top = 75
Width = 55
Height = 24
Hint =
'Makes the edge of the image to smear towards the borders of the ' +
'screen. '#13#10'Default: 0'
AutoSize = False
MaxLength = 3
MaxValue = 100
MinValue = 0
TabOrder = 1
Value = 0
end
end
object btnAdvanced: TButton
Left = 194
Top = 61
Width = 33
Height = 18
Hint = 'Advanced settings'
Caption = '...'
TabOrder = 3
OnClick = btnAdvancedClick
end
end
object grpShape: TGroupBox
Left = 29
Top = 211
Width = 213
Height = 124
Anchors = []
Caption = 'Background shape'
TabOrder = 1
object radShapeSolid: TRadioButton
Left = 35
Top = 41
Width = 46
Height = 16
Hint =
'The color used will be the average image color (do not confuse w' +
'ith '#39'dominant'#39' image color)'
Caption = 'Solid'
TabOrder = 0
OnClick = SettingsChanged
end
object radShapeRect: TRadioButton
Left = 35
Top = 64
Width = 77
Height = 16
Caption = 'Rectangles'
Checked = True
TabOrder = 1
TabStop = True
OnClick = SettingsChanged
end
object radShapeTraing: TRadioButton
Left = 35
Top = 87
Width = 67
Height = 16
Caption = 'Triangles'
TabOrder = 2
OnClick = SettingsChanged
end
end
object grpBkgFill: TGroupBox
Left = 29
Top = 40
Width = 213
Height = 161
Hint =
'This applies when the image is smaller than the desktop and the ' +
'program has to fill the "empty" area with some color.'
Anchors = []
Caption = 'Fill background with:'
TabOrder = 0
object lblPixTolerance: TLabel
Left = 60
Top = 118
Width = 84
Height = 15
Caption = 'Color tolerance:'
Transparent = True
end
object btnBackgroundClr: TButton
Left = 145
Top = 63
Width = 33
Height = 19
Hint =
'Choose desktop background color.'#13#10'This color will also be used i' +
'n the preview panel.'
Caption = '...'
TabOrder = 3
OnClick = btnBackgroundClrClick
end
object radUserColor: TRadioButton
Left = 20
Top = 65
Width = 111
Height = 16
Hint =
'The desktop background will have a single color, as defined by u' +
'ser.'
Caption = 'User defined color'
TabOrder = 1
OnClick = SettingsChanged
end
object radAutoDetBorder: TRadioButton
Left = 20
Top = 90
Width = 137
Height = 16
Hint =
'Autodetect dominant color of the borders. If the image has (for ' +
'example) red color on the left border and blue on the right bord' +
'er, then the desktop background color will be red on the left an' +
'd blue on the right.'
Caption = 'Dominant border color'
Checked = True
TabOrder = 2
TabStop = True
OnClick = SettingsChanged
end
object radImageAverage: TRadioButton
Left = 20
Top = 39
Width = 123
Height = 16
Hint = 'The desktop background will have a single color.'
Caption = 'Image average color'
TabOrder = 0
OnClick = SettingsChanged
end
object spnPixTolerance: TSpinEdit
Left = 148
Top = 116
Width = 45
Height = 24
Hint =
'Dominant color '#13#10#13#10'Considers two neighbour pixels identical if c' +
'olor difference between them is smaller than this value.'#13#10'Increa' +
'se this value if the background color is not determined correctl' +
'y. '#13#10'Decrease this value if the background color could not be de' +
'termined (at all).'#13#10' '#13#10'Range: 1-200'#13#10'Default value: 8'#13#10
MaxValue = 200
MinValue = 1
TabOrder = 4
Value = 8
OnChange = SettingsChanged
end
end
object pnlExplain: TPanel
Left = 451
Top = 148
Width = 513
Height = 143
Hint = 'Click to close.'#13#10'(This message will only be shown once)'
Anchors = []
BevelInner = bvSpace
BevelKind = bkSoft
TabOrder = 3
Visible = False
object lblExplain: TLabel
AlignWithMargins = True
Left = 5
Top = 19
Width = 499
Height = 115
Cursor = crHandPoint
Margins.Top = 0
Align = alClient
Alignment = taCenter
Caption =
'When your wallpaper is smaller than the desktop, BioniX can auto' +
'matically fill the desktop with a color, instead of showing a bl' +
'ank area. You can maually select a color or let BioniX auto dete' +
'rmine the best color (based on the palette of the displayed wall' +
'paper).'
Color = 8454143
ParentColor = False
Transparent = False
Layout = tlCenter
WordWrap = True
OnClick = lblExplainClick
end
object lblHint: TLabel
AlignWithMargins = True
Left = 5
Top = 5
Width = 499
Height = 14
Cursor = crHandPoint
Margins.Bottom = 0
Align = alTop
Caption = 'Hint!'
Color = 60652
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentColor = False
ParentFont = False
Transparent = False
Layout = tlCenter
WordWrap = True
OnClick = lblExplainClick
end
end
end
object pnlBottom: TPanel
AlignWithMargins = True
Left = 3
Top = 385
Width = 544
Height = 35
Align = alBottom
BevelOuter = bvNone
TabOrder = 1
object btnApply: TButton
Left = 472
Top = 0
Width = 72
Height = 35
Align = alRight
Caption = 'Apply'
TabOrder = 2
OnClick = btnApplyClick
end
object btnOk: TButton
Left = 328
Top = 0
Width = 72
Height = 35
Align = alRight
Caption = 'Ok'
Default = True
TabOrder = 0
OnClick = btnOkClick
end
object btnCancel: TButton
Left = 400
Top = 0
Width = 72
Height = 35
Align = alRight
Caption = 'Cancel'
TabOrder = 1
OnClick = btnCancelClick
end
end
object ColorDialog: TColorDialog
Color = 3810591
CustomColors.Strings = (
'ColorA=FFFFFFFF'
'ColorB=FFFFFFFF'
'ColorC=FFFFFFFF'
'ColorD=FFFFFFFF'
'ColorE=FFFFFFFF'
'ColorF=FFFFFFFF'
'ColorG=FFFFFFFF'
'ColorH=FFFFFFFF'
'ColorI=FFFFFFFF'
'ColorJ=FFFFFFFF'
'ColorK=FFFFFFFF'
'ColorL=FFFFFFFF'
'ColorM=FFFFFFFF'
'ColorN=FFFFFFFF'
'ColorO=FFFFFFFF'
'ColorP=FFFFFFFF')
Options = [cdFullOpen, cdAnyColor]
Left = 239
Top = 20
end
end