3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define STYLE1_ICON_W 50
21 #define STYLE1_ICON_H 50
22 #define STYLE1_BADGE_W 34
23 #define STYLE1_BADGE_H 34
24 #define STYLE1_BADGE_BORDER 16
25 #define STYLE1_BADGE_PADDING 8
26 #define STYLE1_BADGE_OVER_X 8
27 #define STYLE1_BADGE_OVER_Y -6
29 #define STYLE2_ICON_W 50
30 #define STYLE2_ICON_H 50
31 #define STYLE2_BADGE_W 40
32 #define STYLE2_BADGE_H 40
33 #define STYLE2_BADGE_BORDER 19
34 #define STYLE2_BADGE_PADDING 8
35 #define STYLE2_BADGE_OVER_X 2
36 #define STYLE2_BADGE_OVER_Y -8
40 name: "elm/icon_badge/base/style1";
43 image : "00_badge_34x34.png" COMP;
53 min: STYLE1_ICON_W STYLE1_ICON_H;
54 rel1 { relative: 0.0 0.0; }
55 rel2 { relative: 1.0 1.0; }
65 rel1 { relative: 0.0 0.0; to_x: "elm.badge.padding.left"; to_y: "elm.badge.text"; }
66 rel2 { relative: 1.0 1.0; to_x: "elm.badge.padding.right"; to_y: "elm.badge.text"; }
67 image.normal: "00_badge_34x34.png";
68 image.border: STYLE1_BADGE_BORDER STYLE1_BADGE_BORDER STYLE1_BADGE_BORDER STYLE1_BADGE_BORDER;
74 name: "elm.badge.text";
81 rel1 { relative: (STYLE1_ICON_W-STYLE1_BADGE_W+STYLE1_BADGE_OVER_X+STYLE1_BADGE_PADDING)/STYLE1_ICON_W (STYLE1_BADGE_OVER_Y)/STYLE1_ICON_H; to: "elm.icon"; }
82 rel2 { relative: (STYLE1_ICON_W+STYLE1_BADGE_OVER_X-STYLE1_BADGE_PADDING)/STYLE1_ICON_W (STYLE1_BADGE_H+STYLE1_BADGE_OVER_Y)/STYLE1_ICON_H; to: "elm.icon"; }
90 color: 255 255 255 255;
95 name: "elm.badge.padding.left";
100 min: STYLE1_BADGE_PADDING 0;
103 rel1 { relative: 0.0 0.0; to: "elm.badge.text"; }
104 rel2 { relative: 0.0 1.0; to: "elm.badge.text"; }
110 name: "elm.badge.padding.right";
114 state: "default" 0.0;
115 min: STYLE1_BADGE_PADDING 0;
118 rel1 { relative: 1.0 0.0; to: "elm.badge.text"; }
119 rel2 { relative: 1.0 1.0; to: "elm.badge.text"; }
128 name: "elm/icon_badge/base/style2";
131 image : "00_badge_40x40.png" COMP;
140 state: "default" 0.0;
141 min: STYLE2_ICON_W STYLE2_ICON_H;
142 rel1 { relative: 0.0 0.0; }
143 rel2 { relative: 1.0 1.0; }
148 name: "elm.badge.bg";
152 state: "default" 0.0;
153 rel1 { relative: 0.0 0.0; to_x: "elm.badge.padding.left"; to_y: "elm.badge.text"; }
154 rel2 { relative: 1.0 1.0; to_x: "elm.badge.padding.right"; to_y: "elm.badge.text"; }
155 image.normal: "00_badge_40x40.png";
156 image.border: STYLE2_BADGE_BORDER STYLE2_BADGE_BORDER STYLE2_BADGE_BORDER STYLE2_BADGE_BORDER;
157 image.border_scale:1;
162 name: "elm.badge.text";
166 state: "default" 0.0;
169 rel1 { relative: (STYLE2_ICON_W-STYLE2_BADGE_W+STYLE2_BADGE_OVER_X+STYLE2_BADGE_PADDING)/STYLE2_ICON_W (STYLE2_BADGE_OVER_Y)/STYLE2_ICON_H; to: "elm.icon"; }
170 rel2 { relative: (STYLE2_ICON_W+STYLE2_BADGE_OVER_X-STYLE2_BADGE_PADDING)/STYLE2_ICON_W (STYLE2_BADGE_H+STYLE2_BADGE_OVER_Y)/STYLE2_ICON_H; to: "elm.icon"; }
178 color: 255 255 255 255;
183 name: "elm.badge.padding.left";
187 state: "default" 0.0;
188 min: STYLE2_BADGE_PADDING 0;
191 rel1 { relative: 0.0 0.0; to: "elm.badge.text"; }
192 rel2 { relative: 0.0 1.0; to: "elm.badge.text"; }
198 name: "elm.badge.padding.right";
202 state: "default" 0.0;
203 min: STYLE2_BADGE_PADDING 0;
206 rel1 { relative: 1.0 0.0; to: "elm.badge.text"; }
207 rel2 { relative: 1.0 1.0; to: "elm.badge.text"; }