diff options
Diffstat (limited to 'alarm-app/res/list/edje/add-button-style.edc')
-rw-r--r-- | alarm-app/res/list/edje/add-button-style.edc | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/alarm-app/res/list/edje/add-button-style.edc b/alarm-app/res/list/edje/add-button-style.edc new file mode 100644 index 0000000..d3843c5 --- /dev/null +++ b/alarm-app/res/list/edje/add-button-style.edc @@ -0,0 +1,110 @@ +/* + * Copyright 2017 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.org/license/ + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "ListPath.h" + +#define ICON_WH 98 + +#define TEXT_T 8 +#define TEXT_H 74 +#define TEXT_LR 60 + +styles { + style { + name: "no_alarms_text"; + base: "font=Tizen:style=Regular font_size=27 align=center color=#fff"; + } +} + +collections { + base_scale: 1.3; + + group { "elm/button/base/"STYLE_BUTTON_ADD_ALARM; + parts { + image { "image"; scale; + images.image: PATH_ICON_ADD_ALARM COMP; + desc { "default"; + fixed: 1 1; + min: ICON_WH ICON_WH; + align: 0.5 0.0; + rel1.relative: 0.5 0.0; + rel2.relative: 0.5 0.0; + image.normal: PATH_ICON_ADD_ALARM; + } + desc { "pressed"; + inherit: "default"; + color: 255 255 255 179; + } + } + spacer { "spacer.text.top"; scale; + desc { "default"; + fixed: 0 1; + min: 0 TEXT_T; + align: 0.5 0.0; + rel1 { relative: 0.0 1.0; to_y: "image"; } + rel2 { relative: 1.0 1.0; to_y: "image"; } + } + } + spacer { "spacer.text.left"; scale; + desc { "default"; + fixed: 1 0; + min: TEXT_LR 0; + align: 0.0 0.5; + rel2.relative: 0.0 1.0; + } + } + spacer { "spacer.text.right"; scale; + desc { "default"; + fixed: 1 0; + min: TEXT_LR 0; + align: 1.0 0.5; + rel1.relative: 1.0 0.0; + } + } + textblock { "elm.text"; scale; + desc { "default"; + min: 0 TEXT_H; + rel1 { relative: 1.0 1.0; to_x: "spacer.text.left"; to_y: "spacer.text.top"; } + rel2 { relative: 0.0 1.0; to_x: "spacer.text.right"; } + text { + min: 1 0; + ellipsis: -1; + style: "no_alarms_text"; + } + } + } + } + programs { + program { + signal: "mouse,down,*"; + source: "*"; + action: STATE_SET "pressed"; + target: "image"; + } + program { + signal: "mouse,up,*"; + source: "*"; + action: STATE_SET "default"; + target: "image"; + } + program { + signal: "mouse,clicked,*"; + source: "*"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } + } +} |