forked from bitfocus/companion-module-getontime-ontime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.js
77 lines (76 loc) · 1.97 KB
/
feedback.js
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
exports.getFeedbacks = function () {
let feedbacks = {}
feedbacks['state_color'] = {
label: 'Change color from state',
description: 'Change the colors of a bank according to the timer state',
options: [
{
type: 'colorpicker',
label: 'Running: Foreground color',
id: 'run_fg',
default: this.rgb(255, 255, 255),
},
{
type: 'colorpicker',
label: 'Running: Background color',
id: 'run_bg',
default: this.rgb(0, 204, 0),
},
{
type: 'colorpicker',
label: 'Paused: Foreground color',
id: 'pause_fg',
default: this.rgb(255, 255, 255),
},
{
type: 'colorpicker',
label: 'Paused: Background color',
id: 'pause_bg',
default: this.rgb(237, 137, 54),
},
{
type: 'colorpicker',
label: 'Stopped: Foreground color',
id: 'stop_fg',
default: this.rgb(255, 255, 255),
},
{
type: 'colorpicker',
label: 'Stopped: Background color',
id: 'stop_bg',
default: this.rgb(0, 0, 0),
},
{
type: 'colorpicker',
label: 'Roll: Foreground color',
id: 'roll_fg',
default: this.rgb(255, 255, 255),
},
{
type: 'colorpicker',
label: 'Roll: Background color',
id: 'roll_bg',
default: this.rgb(43, 108, 176),
},
],
}
feedbacks['timer_negative'] = {
type: 'boolean',
label: 'Change color from timer negative',
description: 'Change the colors of a bank according if the timer runs into negative time',
style: {
color: this.rgb(255, 255, 255),
bgcolor: this.rgb(255, 0, 0),
},
}
feedbacks['onAir'] = {
type: 'boolean',
label: 'Change color from onAir',
description: 'Change the colors of a bank if onAir is turned on',
style: {
color: this.rgb(255, 255, 255),
bgcolor: this.rgb(255, 0, 0),
},
}
return feedbacks
}