-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadowtrim.kv
279 lines (265 loc) · 8.41 KB
/
shadowtrim.kv
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
#:kivy 1.9.1
<NavSliders>:
slider_a: slider_a
slider_b: slider_b
label_a: label_a
label_b: label_b
BoxLayout:
pos: root.pos
size: root.size
orientation: 'horizontal'
Label:
size_hint_x: 0.1
id: label_a
font_size: 18
font_name: 'Consola'
color: 0.180, 0.980, 0.431, 1
BoxLayout:
pos: self.pos
size: self.size
size_hint_x: 0.8
orientation: 'vertical'
RichSlider:
pos: self.pos
size_hint_y: 0.5
id: slider_a
disabled: True
RichSlider:
pos: self.pos
size_hint_y: 0.5
id: slider_b
disabled: True
Label:
size_hint_x: 0.1
id: label_b
font_size: 18
font_name: 'Consola'
color: 0.980, 0.231, 0.180, 1
<SourceFile>:
BoxLayout:
canvas.before:
Color:
rgba: 0.15, 0.15, 0.1, 1
Rectangle:
pos: self.pos
size: self.size
Color:
rgba: root.mark_color
Line:
rectangle: self.x, self.y, self.width, self.height
close: True
joint: 'round'
width: 2
pos: root.pos
size: root.size
orientation: 'horizontal'
padding: 8, 3, 8, 3
BoxLayout:
orientation: 'vertical'
Label:
size_hint_y: None
height: 22
font_size: 17.5
text_size: self.size
halign: 'left'
color: 0.078, 0.470, 1, 1
text: root.filename
BoxLayout:
orientation: 'horizontal'
spacing: 3
padding: 3, 1, 3, 1
BoxLayout:
size_hint_x: 0.25
orientation: 'vertical'
Label:
font_size: 9.5
text_size: self.size
halign: 'left'
color: 0.984, 0.988, 0.670, 1
text: 'Duration'
Label:
pos_hint: {'y': 0.33}
font_size: 12
text_size: self.size
halign: 'left'
color: 0.984, 0.988, 0.670, 1
text: root.duration
BoxLayout:
size_hint_x: 0.3
orientation: 'vertical'
Label:
font_size: 9.5
text_size: self.size
halign: 'left'
color: 0.988, 0.870, 0.670, 1
text: 'Size'
Label:
pos_hint: {'y': 0.33}
font_size: 12
text_size: self.size
halign: 'left'
color: 0.988, 0.870, 0.670, 1
text: str(root.filesize)[:5] + ' GB'
BoxLayout:
orientation: 'vertical'
Label:
font_size: 9.5
text_size: self.size
halign: 'left'
color: 0.823, 0.988, 0.670, 1
text: 'Datetime'
Label:
pos_hint: {'y': 0.33}
font_size: 12
text_size: self.size
halign: 'left'
color: 0.823, 0.988, 0.670, 1
text: root.datetime
Label:
size_hint_x: None
width: 50
font_size: 40
font_name: 'Arial'
color: 0.007, 0.266, 0.949, 1
text: u'\u25ba'
<FileList>:
grid: grid
ScrollView:
pos: root.pos
size: root.size
do_scroll_x: False
GridLayout:
id: grid
cols: 1
padding: 5, 5, 5, 5
spacing: 5, 5
row_default_height: 55
row_force_default: True
height: len(self.children) * (self.row_default_height + self.spacing[0]) + 20
size_hint_y: None
<VideoEditor>:
nav_sliders: nav_sliders
player: player
filename_input: filename_input
save_button: save_button
duration_label: duration_label
position_label: position_label
BoxLayout:
id: box
pos: root.pos
size: root.size
orientation: 'vertical'
spacing: 5
padding: 0, 5, 5, 5
Previewer:
id: player
nav_sliders: nav_sliders
video_editor: root
disabled: True
NavSliders:
id: nav_sliders
player: player
video_editor: root
size_hint_y: 0.1
BoxLayout:
size_hint_y: 0.1
orientation: 'horizontal'
spacing: 5
BoxLayout:
size_hint_x: 0.3
orientation: 'vertical'
padding: 50, 0, 0, 0
Label:
size_hint_y: 0.25
font_size: 14
color: 0.2, 0.415, 1, 0.9
text_size: self.size
halign: 'left'
text: 'Position'
Label:
size_hint_y: 0.75
id: position_label
font_name: 'Consola'
font_size: 45
color: 0.2, 0.415, 1, 1
text_size: self.size
halign: 'left'
text: '0:00:00.00'
BoxLayout:
size_hint_x: 0.3
orientation: 'vertical'
padding: 2, 2, 2, 2
spacing: 5
Label:
size_hint_y: 0.3
text_size: self.size
halign: 'left'
font_size: 15
text: 'Name the clip:'
TextInput:
size_hint_y: 0.6
disabled: True
id: filename_input
font_size: 18
hint_text: 'Be creative..'
multiline: False
cursor_color: 0.5, 0.5, 0.5, 1
selection_color: 0.7, 0.7, 0.7, 0.3
on_text_validate: root.save_file()
on_text: root.validate_filename()
Widget:
size_hint_y: 0.1
AnchorLayout:
size_hint_x: 0.1
Button:
size_hint: 0.8, 0.7
disabled: root.filename_input.text == ''
id: save_button
on_press: root.save_file()
font_size: 20
text: 'Save it!'
BoxLayout:
size_hint_x: 0.3
orientation: 'vertical'
padding: 50, 0, 0, 0
Label:
size_hint_y: 0.25
font_size: 14
color: 1, 0.682, 0.2, 0.9
text_size: self.size
halign: 'left'
text: 'Clip duration'
Label:
size_hint_y: 0.75
id: duration_label
font_name: 'Consola'
font_size: 45
color: 1, 0.682, 0.2, 1
text_size: self.size
halign: 'left'
text: '0:00:00.00'
<JobStatuses>:
Label:
center_x: root.center_x
center_y: root.center_y
font_size: 20
text: 'settings will be here at some point. today is not that day'
<ShadowTrim>:
file_list: file_list
video_editor: video_editor
BoxLayout:
size: root.size
orientation: 'horizontal'
spacing: 5
FileList:
id: file_list
size_hint_x: None
width: 540
BoxLayout:
orientation: 'vertical'
spacing: 5
VideoEditor:
id: video_editor
size_hint_y: None
height: 890
JobStatuses: