#include "macros.inl"
-#define COLOR_BLUE_EDC 2 61 132 255
-
collections {
BASE_SCALE;
}
group {
+ name: "conv/list/image_item";
+ images {
+ image: "messages_attach_image_round_line.#.png" RAW;
+ image: "messages_attach_image_round_mask.#.png" RAW;
+ }
+ parts {
+ part {
+ name: "masking";
+ type: IMAGE;
+ precise_is_inside: 1;
+ description {
+ state: "default" 0.0;
+ image.normal: "messages_attach_image_round_mask.#.png";
+ }
+ }
+ part {
+ name: "content";
+ type: SWALLOW;
+ clip_to: "masking";
+ description {
+ state: "default" 0.0;
+ }
+ }
+ part {
+ name: "line";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ image.normal: "messages_attach_image_round_line.#.png";
+ color: 0 0 0 51;
+ }
+ }
+ }
+ }
+
+ group {
name: "conv/list/video_item";
images {
image: "messages_play_btn.png" COMP;
*/
#include "BubbleImageViewItem.h"
+#include "Resource.h"
using namespace Msg;
BubbleImageViewItem::BubbleImageViewItem(BubbleEntity &entity, Evas_Object *parent, const std::string &imagePath)
: BubbleViewItem(entity)
{
+ setEo(addLayout(parent, CONV_LIST_BUBBLE_EDJ_PATH, "conv/list/image_item"));
+ attachGestureTapLayer(getEo(), getEo());
Evas_Object *img = createImage(parent, imagePath);
- attachGestureTapLayer(img, img);
- setEo(img);
+ setContent(img, "content");
}
BubbleImageViewItem::~BubbleImageViewItem()