summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/elm/map.edc
blob: 108a721d9bd66c07099c66b674141ce10298f17f (plain) (blame)
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
group { name: "elm/map/base/default";
   inherit: "elm/photocam/base/default";
}

group { name: "elm/map/marker/radio/default";
   data.item: "size_w" 35;
   data.item: "size_h" 35;
   data.item: "size_max_w" 35;
   data.item: "size_max_h" 35;
   images.image: "map_marker.png" COMP;
   parts {
      part { name: "mark";
         description { state: "default" 0.0;
            fixed: 1 1;
            rel1.relative: 0.5 0.5;
            rel1.offset: 0 3;
            rel2.relative: 0.5 0.5;
            rel2.offset: 0 3;
            align: 0.5 1.0;
            min: 65 35; max: 65 35;
            image.normal: "map_marker.png";
            color: 51 153 255 255;
         }
      }
      part { name: "elm.icon"; type: SWALLOW; mouse_events:  0;
         description { state: "default" 0.0;
            rel.to: "mark";
            rel1.relative: (25/65) (5/35);
            rel2.relative: (40/65) (20/35);
            rel2.offset: 0 0;
         }
      }
      part { name: "elm.text"; type: TEXT;
         description { state: "default" 0.0;
            fixed: 1 1;
            rel.to: "elm.icon";
            color: 255 255 255 255;
            text { font: FNBD; size: 10;
               text_class: "map_radio";
               min: 1 1;
               ellipsis: -1;
            }
         }
      }
   }
}

group { name: "elm/map/marker/empty/default";
   data.item: "size_w" 16;
   data.item: "size_h" 16;
   data.item: "size_max_w" 24;
   data.item: "size_max_h" 24;
   parts {
      part { name: "knob"; type: SPACER;
         description { state: "default" 0.0;
            min: 16 16;
            max: 24 24;
         }
      }
      part { name: "elm.icon"; type: SWALLOW; mouse_events:  0;
         description { state: "default" 0.0;
            rel.to: "knob";
         }
      }
      part { name: "elm.text"; type: TEXT;
         description { state: "default" 0.0;
            rel.to: "knob";
            color: 160 160 160 255;
            text { font: FNBD; size: 10;
               text_class: "map_empty";
               min: 1 1;
               ellipsis: -1;
            }
         }
      }
   }
}

group { name: "elm/map/circle/base/default";
   images.image: "map_circle.png" COMP;
   parts {
      part { name: "base";
         ignore_flags: ON_HOLD;
         description { state: "default" 0.0;
            image.normal: "map_circle.png";
         }
      }
   }
}

group { name: "elm/map/scale/base/default";
   data.item: "size_w" 100;
   data.item: "size_h" 22;
   images.image: "map_scale.png" COMP;
   parts {
      part { name: "scale";
         description { state: "default" 0.0;
            min: 16 16;
            image.border: 6 6 5 5;
            image.normal: "map_scale.png";
         }
      }
      part { name: "elm.text"; type: TEXT;
         effect: SHADOW BOTTOM;
         description { state: "default" 0.0;
            rel1.offset: 6 5;
            rel2.offset: -7 -5;
            color: 255 255 255 255;
            text { font: FNBD; size: 10;
               text_class: "map_scale";
               min: 1 1;
               ellipsis: -1;
               align: 0.0 0.0;
            }
         }
      }
   }
}

group { name: "elm/map/marker_bubble/default";
   data.item: "size_w" 320;
   data.item: "size_h" 160;
   parts {
      part { name: "base"; type: RECT;
         scale: 1;
         description { state: "default" 0.0;
            color: 0 0 0 192;
            rel1.offset: 4 4;
            rel2.offset: -5 -5;
            offscale;
         }
      }
      part { name: "elm.swallow.content"; type: SWALLOW;
         description { state: "default" 0.0;
            rel1.to: "base";
            rel1.offset: 4 4;
            rel2.offset: -5 -5;
            offscale;
         }
      }
   }
}