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.
21 image: "icon_indicator_setting.png" COMP;
22 image: "line_indicator_divider.png" COMP;
23 image: "bg_press.#.png" COMP;
28 name: "font_time_am_pm_style";
29 base: "font=Tizen:style=Regular font_size=22 valign=middle ellipsis=1.0 wrap=none";
30 tag: "time" "+ color=#FFFFFF ";
31 tag: "ampm" "+ color=#FFFFFF ";
35 name: "font_date_style";
36 base: "font=Tizen:style=Regular font_size=22 color=#FFFFFF valign=middle color_class=tizen ellipsis=1.0 wrap=none";
41 name: "quickpanel/datetime";
44 public g_is_timedate_clickable;
54 color_class: QP_BACKGROUND_COLOR;
58 QUICKPANEL_FOCUS_OBJECT("focus", "base", "base")
60 part { name: "space.button.setting";
78 QUICKPANEL_FOCUS_OBJECT("focus.setting", "space.button.setting", "space.button.setting")
80 part { name: "space.divider";
90 to: "space.button.setting";
94 to: "space.button.setting";
100 name: "space.datetime";
104 state: "default" 0.0;
115 QUICKPANEL_FOCUS_OBJECT("focus.datetime", "space.datetime", "space.datetime")
117 part { name: "image.button.setting.bg";
121 state: "default" 0.0;
127 to: "space.button.setting";
131 to: "space.button.setting";
134 normal: "bg_press.#.png";
136 color_class: "F043P";
140 state: "pressed" 0.0;
146 part { name: "image.datetime.bg";
150 state: "default" 0.0;
156 to: "space.datetime";
160 to: "space.datetime";
163 normal: "bg_press.#.png";
165 color_class: "F043P";
169 state: "pressed" 0.0;
175 part { name: "image.button.setting";
180 state: "default" 0.0;
186 to: "space.button.setting";
190 to: "space.button.setting";
193 normal:"icon_indicator_setting.png";
195 color_class: "AO025";
199 part { name: "image.divider";
203 state: "default" 0.0;
216 normal: "line_indicator_divider.png";
218 color_class: "AO003E1";
222 part { name: "divider.padding.left";
226 state: "default" 0.0;
241 part { name: "text.time";
246 state: "default" 0.0;
252 to: "divider.padding.left";
256 to: "divider.padding.left";
259 style: "font_time_am_pm_style";
267 part { name: "date.left.padding";
271 state: "default" 0.0;
277 to: "space.datetime";
281 to: "space.datetime";
287 name: "date.top.padding";
291 state: "default" 0.0;
297 to: "space.datetime";
301 to: "space.datetime";
306 part { name: "text.time.left.padding";
310 state: "default" 0.0;
315 //relative : 0.0 0.0;
325 part { name: "text.date";
330 state: "default" 0.0;
336 to_x: "date.left.padding";
337 to_y: "date.top.padding";
341 to_x : "text.time.left.padding";
342 to_y: "space.datetime";
345 style: "font_date_style";
356 name: "timedate.init";
359 set_int(g_is_timedate_clickable, 1);
363 name: "button.setting.down";
364 signal: "mouse,down,*";
365 source: "focus.setting";
366 action: STATE_SET "pressed" 0.0;
367 target: "image.button.setting.bg";
370 name: "button.setting.up";
371 signal: "mouse,up,*";
372 source: "focus.setting";
373 action: STATE_SET "default" 0.0;
374 target: "image.button.setting.bg";
377 name: "timendate.click.enable";
378 signal: "timendate.click.enable";
381 set_int(g_is_timedate_clickable, 1);
385 name: "timendate.click.disable";
386 signal: "timendate.click.disable";
389 set_int(g_is_timedate_clickable, 0);
393 name: "date_time.down";
394 signal: "mouse,down,*";
395 source: "focus.datetime";
397 if (get_int(g_is_timedate_clickable) == 1) {
398 set_state(PART:"image.datetime.bg", "pressed", 0.0);
403 name: "date_time.up";
404 signal: "mouse,up,*";
405 source: "focus.datetime";
406 action: STATE_SET "default" 0.0;
407 target: "image.datetime.bg";