From: Shinwoo Kim Date: Mon, 18 Apr 2011 14:05:53 +0000 (+0900) Subject: [ctxpopop] add diskselector style for timepicker X-Git-Tag: submit/2.0alpha-wayland/20121130.000903~830 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0eb2ecbeaf70db684b5f0cda22f12bd37d171176;p=profile%2Fivi%2Fefl-theme-tizen.git [ctxpopop] add diskselector style for timepicker Change-Id: Ie31576f07152546cc731769e380eb397ee61b16d --- diff --git a/themes/groups/diskselector.edc b/themes/groups/diskselector.edc new file mode 100644 index 0000000..a9b251a --- /dev/null +++ b/themes/groups/diskselector.edc @@ -0,0 +1,149 @@ +/* + * Beat-theme + + * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd. + + * Contact: Seokjae Jeong , Myoungwoon Roy Kim , Jeonghyun Yun , Jaehwan Kim , + * Chuneon Park , Juyung Seo , Woohyun Jung , Myungjae Lee , Hyoyoung Chang , Shinwoo Kim + * Hyunsil Park , Sohyun Kim , Seunggyun Kim + + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + + * This library 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 GNU Lesser General Public + * License for more details. + + * You should have received a copy of the GNU Lesser General Public License + * along with this library; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + */ + +/////////////////////////////////////////////////////////////////////////////////////// +// +// diskselector +// +/////////////////////////////////////////////////////////////////////////////////////// +group { name: "elm/diskselector/base/extended/timepicker"; + + parts { + part { name: "bg"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + } + } +} + +group { name: "elm/diskselector/item/extended/timepicker"; + + data { + item: "len_threshold" "14"; + item: "display_item_num" "8"; + item: "min_height" "66"; + } + + parts { + part { + name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + min: 32 66; + max: 32 66; + fixed: 1 1; + align: 0 0; + color: 231 173 95 255; + visible: 1; + text { + font: FONT_ROM; + size: 24; + align: 0.5 0.5; + min: 0 1; + } + } + + description { + state: "selected" 0.0; + min: 32 66; + max: 32 66; + fixed: 1 1; + align: 0 0; + color: 255 255 255 255; + visible: 1; + text { + font: FONT_ROM; + size: 24; + align: 0.5 0.5; + min: 0 1; + } + } + + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "default_small" 0.0; + inherit: "default" 0.0; + visible: 1; + text.size: 10; + } + description { state: "left_side" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "right_side" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + + part { + name: "over1"; + mouse_events: 1; + repeat_events: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + } + } + } + + programs { + program { + name: "elm,state,selected"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "elm.text"; + } + program { + name: "elm,state,default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + } + program { + name: "item_click"; + signal: "mouse,clicked,1"; + source: "over1"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} diff --git a/themes/nbeat.edc b/themes/nbeat.edc index 3a700ce..8fa7076 100644 --- a/themes/nbeat.edc +++ b/themes/nbeat.edc @@ -63,6 +63,7 @@ collections { #include "groups/datefield.edc" #include "groups/dayselector.edc" #include "groups/dialoguegroup.edc" +#include "groups/diskselector.edc" #include "groups/editfield.edc" #include "groups/entry.edc" #include "groups/gengrid.edc"