-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathPreferences.def
More file actions
79 lines (45 loc) · 3.08 KB
/
Preferences.def
File metadata and controls
79 lines (45 loc) · 3.08 KB
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
#ifndef PREF
#define PREF(TYPE, NAME, DEFAULT, LABEL, CELL_TYPE, ...)
#endif
#ifndef GROUP
#define GROUP(TITLE, FOOTER, ...)
#endif
#ifndef RAW_ENTRY
#define RAW_ENTRY(CELL, ...)
#endif
#define is_iPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
PREF(NSNumber*, enabled, @(true), @"Enabled", PSSwitchCell, )
GROUP("Animation Duration", "", )
PREF(NSNumber*, animationDuration, @(0.5), @"Animation Duration", PSSliderCell, @"showValue" : @(true), @"min" : @(0.1), @"max" : @(1.0))
GROUP("Dock Margin", "", )
PREF(NSNumber*, iconInset, is_iPad ? @(30.0) : @(15.0), @"Icon Inset", PSSliderCell, @"showValue" : @(true), @"min" : @(0.1), @"max" : is_iPad ? @(120.0) : @(80.0))
GROUP("Wave Height", "", )
PREF(NSNumber*, evasionDistance, is_iPad ? @(120.0) : @(60.0), @"Evasion Distance", PSSliderCell, @"showValue" : @(true), @"min" : @(0.1), @"max" : is_iPad ? @(240.0) : @(180.0))
GROUP("Wave Width", "", )
PREF(NSNumber*, effectiveRange, is_iPad ? @(200.0) : @(60.0), @"Effective Range", PSSliderCell, @"showValue" : @(true), @"min" : @(0.1), @"max" : is_iPad ? @(400.0) : @(180.0))
GROUP("Icon Padding Multiplier", "", )
PREF(NSNumber*, iconPaddingMultipler, @(0.25), @"Icon Padding Multiplier", PSSliderCell, @"showValue" : @(true), @"min" : @(0.0), @"max" : @(1.0))
GROUP("Bounce Options", "", )
PREF(NSNumber*, bounceInterval, @(-1.0), @"Bounce", PSLinkListCell, @"detail" : @"PSListItemsController", \
\
@"validTitles" : @[@"Never", @"Once", @"Twice", @"Thrice", @"Every 2 seconds", @"Every 5 seconds" , @"Every 15 seconds", @"Every 30 seconds", @"Every 1 minute", @"Every 1.5 minutes", @"Every 2 minutes", @"Every 2.5 minutes", @"Every 3 minutes", @"Every 5 minutes"], \
@"validValues" : @[@(0.0), @(-1.0), @(-2.0), @(-3.0), @(2.0), @(5.0), @(15.0), @(30.0), @(60.0), @(60.0 * 1.5), @(60.0 * 2), @(60.0 * 2.5), @(60.0 * 3) , @(60.0 * 5)],
)
PREF(NSNumber*, bounceAboveApps, @(true), @"Bounce In Running Apps", PSSwitchCell, )
PREF(NSNumber*, showBounceOnLockScreen, @(true), @"Bounce On Lock Screen", PSSwitchCell, )
GROUP("", "Place the dock flush with the bottom of the screen.", )
PREF(NSNumber*, flushWithBottom, @(true), @"Flush With Bottom Edge", PSSwitchCell, )
GROUP("", "Show app name when zoomed in.", )
PREF(NSNumber*, showIndicator, @(false), @"Show App Name Indicator", PSSwitchCell, )
GROUP("", "Show Yosemite-style black dot below running apps.", )
PREF(NSNumber*, showStateIndicator, @(false), @"Show App State Dot", PSSwitchCell, )
GROUP("", "Slide up to initiate edit mode.", )
PREF(NSNumber*, initiateEditMode, @(false), @"Initiate Edit Mode", PSSwitchCell, )
GROUP("", "For compatibility issues.", )
PREF(NSNumber*, useNormalBackground, @(false), @"Use Normal Dock Background", PSSwitchCell, )
GROUP("", "Follow for info on updates, deals, and new projects.", )
RAW_ENTRY(PSButtonCell, @"action" : @"follow:", @"icon" : @"twitter.png", @"label" : @"@e_swick on Twitter", )
GROUP("Copyright \u00A9 2015 Evan Swick. All rights reserved.", "", )
#undef PREF
#undef GROUP
#undef RAW_ENTRY