2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 //Default part description. It is not changed by us
23 #define QP_THEME_LIST_TITLE_FONT_NAME "Tizen:style=Bold"
24 #define QP_THEME_LIST_TITLE_FONT_COLOR "ATO005"
25 #define QP_THEME_LIST_TITLE_FONT_SIZE 27
27 #define QP_THEME_LIST_OPTION_FONT_COLOR "ATO006"
28 #define QP_THEME_LIST_OPTION_PRESS_FONT_COLOR "ATO006P"
29 #define QP_THEME_LIST_OPTION_FONT_SIZE 27
30 #define QP_THEME_LIST_OPTION_ICON_PRESS_COLOR "AO005"
32 //size of clear all item
33 #define QP_CLEAR_ALL_ITEM_H 51
34 #define QP_CLEAR_ALL_ITEM_W 480
36 //Properties of "notifications (x) label in clear all notifications item"
37 #define QP_CLEAR_ALL_NOTIFICATIONS_LABEL_FONT_NAME "Tizen:style=Regular"
38 #define QP_CLEAR_ALL_NOTIFICATIONS_LABEL_FONT_COLOR "T027L1"
39 #define QP_CLEAR_ALL_NOTIFICATIONS_LABEL_FONT_SIZE 27
40 #define QP_CLEAR_ALL_NOTIFICATIONS_STR_X_OFFSET 17 //x offset of "notifications(x)" string
42 //Properties of clear all button
43 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_TEXT_FONT_NAME "Tizen:style=Regular"
44 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_COLOR "T027L2"
45 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_COLOR_PRESSED "ATO006P"
46 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_COLOR_DIM "ATO006D"
47 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_SIZE 27
48 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_BG_COLOR "W021L1"
49 #define QP_CLEAR_ALL_CLEAR_ALL_BTN_BG_COLOR_PRESSED "AO021P"
51 //Properties of separator betwen notifiactions label and clear all button
52 #define QP_NOTIFICATIONS_SEP_X_OFFSET -235 //separator between "notification(x) | Clear all" button
53 #define QP_NOTIFICATIONS_SEP_Y_OFFSET 17
54 #define QP_NOTIFICATIONS_SEP_COLOR_CLASS "W021L2"
57 image: "icon_arrow_up.png" COMP;
58 image: "icon_arrow_down.png" COMP;
61 group { name: "quickpanel/notisection/default";
69 min: 0 QP_THEME_LIST_ITEM_NOTI_SECTION_HEIGHT;
70 max: 9999 QP_THEME_LIST_ITEM_NOTI_SECTION_HEIGHT;
78 color_class: QP_THEME_BG_COLOR;
79 visible: QP_THEME_BG_VISIBILITY;
83 QUICKPANEL_FOCUS_OBJECT("focus.label", "base", "base")
84 part { name: "elm.padding.left";
93 rel1.relative: 0.0 0.0;
94 rel2.relative: 0.0 1.0;
98 part { name: "elm.padding.right";
102 state: "default" 0.0;
107 rel1.relative: 1.0 0.0;
108 rel2.relative: 1.0 0.0;
112 part { name: "elm.padding.top";
116 state: "default" 0.0;
121 rel1.relative: 0.0 0.0;
122 rel2.relative: 1.0 0.0;
126 part { name: "elm.padding.bottom";
130 state: "default" 0.0;
135 rel1.relative: 0.0 1.0;
136 rel2.relative: 1.0 1.0;
140 part { name: "elm.padding.top.button";
144 state: "default" 0.0;
147 rel1.relative: 0.0 0.0;
148 rel2.relative: 1.0 0.0;
152 part { name: "elm.padding.bottom.button";
156 state: "default" 0.0;
159 rel1.relative: 0.0 1.0;
160 rel2.relative: 1.0 1.0;
164 part { name: "elm.rect.text";
168 state: "default" 0.0;
172 to_x: "elm.padding.left";
173 to_y: "elm.padding.bottom";
177 to_x: "elm.padding.left";
178 to_y: "elm.padding.bottom";
184 part { name: "elm.text.text";
188 state: "default" 0.0;
198 font: QP_THEME_LIST_TITLE_FONT_NAME;
200 size: QP_THEME_LIST_TITLE_FONT_SIZE;
207 name: "elm.text.text.debug";
210 state: "default" 0.0;
211 rel1.relative: 0.0 0.0;
212 rel2.relative: 1.0 1.0;
213 rel1.to: "elm.text.text";
214 rel2.to: "elm.text.text";
219 part { name: "elm.rect.icon";
223 state: "default" 0.0;
227 to_x: "elm.padding.right";
232 to_x: "elm.padding.right";
240 name: "text.clear.right.padding";
244 state: "default" 0.0;
257 part { name: "text.clear";
261 state: "default" 0.0;
264 to_x: "text.clear.right.padding";
265 to_y: "elm.text.text";
269 to_x: "text.clear.right.padding";
270 to_y: "elm.text.text";
273 color_class: QP_THEME_LIST_OPTION_FONT_COLOR;
275 font: QP_THEME_LIST_TITLE_FONT_NAME;
277 size: QP_THEME_LIST_OPTION_FONT_SIZE;
284 state: "pressed" 0.0;
285 inherit: "default" 0.0;
286 color_class: QP_THEME_LIST_OPTION_PRESS_FONT_COLOR;
290 name: "divider.right.padding";
294 state: "default" 0.0;
312 state: "default" 0.0;
316 to_x: "divider.right.padding";
321 to_x: "divider.right.padding";
325 color_class: QP_THEME_SECTION_ICON_DIVIDER_COLOR;
329 part { name: "rect.text.touch";
334 state: "default" 0.0;
354 signal: "mouse,down,1";
355 source: "rect.text.touch";
356 action: STATE_SET "pressed" 0.0;
357 target: "text.clear";
361 signal: "mouse,up,1";
362 source: "rect.text.touch";
363 action: STATE_SET "default" 0.0;
364 target: "text.clear";
367 name: "button.clicked";
368 signal: "mouse,clicked,1";
369 source: "rect.text.touch";
370 action: SIGNAL_EMIT "button.clicked" "prog";
379 * base - it is the background rectangle. This part is a relative for all other parts and define background color.
380 * noti.clear.all.separator - is the line between "notification(X)" and clear all button
383 name: "quickpanel/notisection/clear_all";
392 state: "default" 0.0;
393 min: 0 QP_CLEAR_ALL_ITEM_H;
401 color_class: QP_CLEAR_ALL_CLEAR_ALL_BTN_BG_COLOR;
406 QUICKPANEL_FOCUS_OBJECT("focus.label", "base", "base")
409 name: "notisection.padding.left";
413 state: "default" 0.0;
428 name: "notisection.padding.right";
432 state: "default" 0.0;
453 state: "default" 0.0;
465 color_class: QP_NOTIFICATIONS_SEP_COLOR_CLASS;
470 name: "noti.clear.all.separator";
479 color_class: QP_NOTIFICATIONS_SEP_COLOR_CLASS;
482 to_x: "clear_all.padding.left";
487 to_x: "clear_all.padding.left";
503 name: "separator.padding.left";
507 state: "default" 0.0;
512 to: "noti.clear.all.separator";
516 to: "noti.clear.all.separator";
523 name: "elm.text.notifications_number";
527 state: "default" 0.0;
531 to: "notisection.padding.left";
537 to_x: "separator.padding.left";
541 color_class: QP_CLEAR_ALL_NOTIFICATIONS_LABEL_FONT_COLOR;
544 font: QP_CLEAR_ALL_NOTIFICATIONS_LABEL_FONT_NAME;
545 size: QP_CLEAR_ALL_NOTIFICATIONS_LABEL_FONT_SIZE;
553 name: "rect.button.clear_all";
558 state: "default" 0.0;
560 to: "clear_all.padding.left";
564 to_x: "notisection.padding.right";
569 color_class: QP_CLEAR_ALL_CLEAR_ALL_BTN_BG_COLOR;
576 state: "pressed" 0.0;
577 inherit: "default" 0.0;
578 color_class: QP_CLEAR_ALL_CLEAR_ALL_BTN_BG_COLOR_PRESSED;
589 name: "text.button.clear_all";
595 state: "default" 0.0;
602 to_y: "notisection.padding.right";
606 to: "notisection.padding.right";
609 color_class: QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_COLOR;
611 font: QP_CLEAR_ALL_CLEAR_ALL_BTN_TEXT_FONT_NAME;
612 size: QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_SIZE;
623 color_class: QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_COLOR_PRESSED;
629 color_class: QP_CLEAR_ALL_CLEAR_ALL_BTN_FONT_COLOR_DIM;
640 name: "clear_all.padding.left";
644 state: "default" 0.0;
649 to_x: "text.button.clear_all";
654 to_x: "text.button.clear_all";
661 QUICKPANEL_FOCUS_OBJECT("focus", "rect.button.clear_all", "rect.button.clear_all")
668 name: "clear_all.button.pressed";
669 signal: "mouse,down,1";
672 action: STATE_SET "pressed" 0.0;
673 target: "rect.button.clear_all";
674 target: "text.button.clear_all";
678 name: "clear_all.button.released";
679 signal: "mouse,up,1";
682 action: STATE_SET "default" 0.0;
683 target: "rect.button.clear_all";
684 target: "text.button.clear_all";
688 name: "clear_all,show";
689 signal: "notifaction,section,clear_all,show";
692 action: STATE_SET "default" 0.0;
693 target: "rect.button.clear_all";
694 target: "text.button.clear_all";
695 target: "noti.clear.all.separator";
701 name: "clear_all,hide";
702 signal: "notifaction,section,clear_all,hide";
705 action: STATE_SET "hide" 0.0;
706 target: "rect.button.clear_all";
707 target: "text.button.clear_all";
708 target: "noti.clear.all.separator";
714 group { name: "quickpanel/seperator/default";
721 state: "default" 0.0;