forked from andoma/movian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
album.view
72 lines (61 loc) · 1.37 KB
/
album.view
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
#import "theme:https://common.view"
widget(keyintercept, {
widget(container_y, {
alpha: 1 - iir(clamp(getLayer(), 0, 1), 7) * 0.5;
blur: iir(clamp(getLayer(), 0, 1), 7);
padding: [5,5,5,$ui.playdeckheight];
widget(container_x, {
padding: 5;
spacing: 5;
widget(frontdrop, {
source: "theme:https://graphics/boxart-overlay.png";
border: 8;
widget(icon, {
source: $page.model.metadata.album_art;
sizeScale: 8;
});
});
widget(container_y, {
filterConstraintX: true;
padding: 8;
widget(label, {
caption: $page.model.metadata.title;
sizeScale: 2;
TextStyleItem();
});
widget(label, {
caption: $page.model.metadata.artist_name;
TextStyleItem();
});
widget(label, {
caption: $page.model.metadata.album_year;
TextStyleItem();
});
});
});
VerticalSeparator();
widget(container_x, {
filterConstraintY: true;
filterConstraintX: true;
widget(list_y, {
id: "list";
&clone.focused = focusedChild();
cloner($page.model.nodes, loader, {
time: 0.1;
effect: blend;
source: "listitems/albumtrack.view";
});
});
widget(slider_y, {
bind("list");
width: 4;
focusable: canScroll();
navFocusable: true;
alpha: iir(canScroll(), 16);
widget(quad, {
alpha: iir(0.3 + 0.3 * (isFocused() || isPressed()), 4) + isHovered();
});
});
});
});
});