aboutsummaryrefslogtreecommitdiff
path: root/data/modgrid.edc
blob: 476150fa61b4cebf7631ff5f2d92653620443486 (plain)
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
/*
 * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 */

images {
	image: "module_border.png" COMP;
}

group {
	name: "elm/gengrid/item/synthpod/default";
	data.item: "texts" "elm.text";
	data.item: "contents" "elm.swallow.content";

	parts {
		part {
			name: "clip";
			type: RECT;
			mouse_events: 0;
			description { state: "default" 0.00; fixed: 1 1; color: COL00; }
		}
		part {
			name: "text.bg";
			type: RECT;
			mouse_events: 1;
			clip_to: "clip";
			description {
				state: "default" 0.0;
				rel1.to: "text.border";
				rel2.to: "text.border";
				color: 48 48 48 255;
			}
		}
		part {
			name: "text.border";
			type: IMAGE;
			mouse_events: 0;
			clip_to: "clip";
			description {
				state: "default" 0.0;
				rel2.relative: 1 0;
				rel2.offset: 0 24;
				image {
					normal: "module_border.png";
					border: 6 6 6 6;
					middle: 0;
				}
			}
		}
		part {
			name: "elm.text";
			type: TEXT;
			mouse_events: 0;
			scale: 1;
			description {
				state: "default" 0.0;
				rel1.to: "text.border";
				rel1.offset: 6 0; // from text.border
				rel2.to: "text.border";
				text {
					text: "hello";
					size: 10;
					align: 0.0 0.5;
				}
			}
		}
		part {
			name: "elm.swallow.content";
			type: SWALLOW;
			mouse_events: 1;
			scale: 1;
			description {
				state: "default" 0.0;
				fixed: 1 1;
				rel1.to_y: "elm.text";
				rel1.relative: 0 1;
			}
		}
	}
}