Copy and paste / res / edje /
source_ext.edc
/*
* Copyright (c) 2016 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 "../../inc/view_defines.h"
#define PART_CLIPPER "label.text.clip"
#define PART_BACKGROUD "image.background"
#define PART_TEXT "elm.text"
#define EXTENSION_FILE_NAME "source.png"
styles {
style {
name: "label_style";
base: "font="FN" font_size=13 text_class=tb_plain align=center color=#998877ff style=shadow,bottom shadow_color=#00000080";
tag: "br" "\n";
tag: "hilight" "+ font="FNBD" text_class=tb_light";
tag: "b" "+ font="FNBD" text_class=tb_light";
}
}
collections {
images {
image: EXTENSION_FILE_NAME COMP;
}
group {
name: "elm/label/base/"GRP_SOURCE_EXT;
parts {
part {
name: PART_CLIPPER;
type: RECT;
description {
state: "default" 0.0;
}
}
part {
name: PART_BACKGROUD;
type: IMAGE;
scale: 1;
description {
state: "default" 0.0;
visible: 1;
fixed: 1 1;
rel1 {
relative: 0.0 0.0;
to: PART_CLIPPER;
}
rel2 {
relative: 1.0 1.0;
to: PART_CLIPPER;
}
image {
normal: EXTENSION_FILE_NAME;
}
}
}
part {
name: PART_TEXT;
type: TEXTBLOCK;
clip_to: PART_CLIPPER;
scale: 1;
description {
state: "default" 0.0;
rel1 {
relative: 0.08 0.08;
to: PART_CLIPPER;
}
rel2 {
relative: 0.92 0.92;
to: PART_CLIPPER;
}
text {
style: "label_style";
}
}
}
}
}
}