state: "pressed" 0.0;
inherit: "default";
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default";
+ }
}
}
programs {
target: "bg";
transition: LINEAR 0.1;
}
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
}
}
group {
name: "compose_icon";
images {
- image: "messages_attach_ic_calendar.png" RAW; //change when icon will be added
- image: "messages_icon_bg.png" RAW;
+ image: "msg_list_icon_composer.png" RAW; //change when icon will be added
+ image: "msg_list_icon_bg.png" RAW;
}
inherit: "base_icon";
parts {
name: "bg";
description {
state: "default" 0.0;
- image.normal: "messages_icon_bg.png";
- color: 255 166 0 255;
+ image.normal: "msg_list_icon_bg.png";
+ color: 255 150 13 255;
}
description {
state: "pressed" 0.0;
inherit: "default";
- color: 184 119 0 255;
+ color: 255 150 13 102;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default";
+ color: 255 150 13 102;
}
}
part {
type: IMAGE;
description {
state: "default" 0.0;
- image.normal: "messages_attach_ic_calendar.png";
+ image.normal: "msg_list_icon_composer.png";
color: 250 250 250 255;
}
}
group {
name: "contacts_icon";
images {
- image: "messages_attach_ic_contact.png" RAW; //change when icon will be added
- image: "messages_icon_bg.png" RAW;
+ image: "msg_list_icon_recipients_bg.png" RAW; //change when icon will be added
+ image: "msg_list_icon_bg.png" RAW;
}
inherit: "base_icon";
parts {
name: "bg";
description {
state: "default" 0.0;
- image.normal: "messages_icon_bg.png";
- color: 255 166 0 255;
+ image.normal: "msg_list_icon_bg.png";
+ color: 252 122 0 255;
}
description {
state: "pressed" 0.0;
inherit: "default";
- color: 184 119 0 255;
+ color: 252 122 0 102;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default";
+ color: 252 122 0 102;
}
}
part {
type: IMAGE;
description {
state: "default" 0.0;
- image.normal: "messages_attach_ic_contact.png";
+ image.normal: "msg_list_icon_recipients_bg.png";
color: 250 250 250 255;
}
}
#include "macros.inl"
-
-#define LIST_PADDING_ICON_LEFT_SIZE_INC 60
-#define LIST_PADDING_ICON_RIGHT_SIZE_INC 60
-
-#define LIST_PADDING_TOP_SIZE_INC 10
-#define LIST_PADDING_BOTTOM_SIZE_INC 10
-
-#define LIST_FOCUS_BG_PADDING_TOP_SIZE_INC 11
-#define LIST_FOCUS_BG_PADDING_BOTTOM_SIZE_INC 11
-
-#define ICON_SIZE 100
-
// ------------------
// | --> HERE
// ------------------
DESCRIPION \
}
-#define PART_LIST_PADDINGS_FOCUS_BG(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE, HIGHLIGHTED_TOP_SIZE, HIGHLIGHTED_BOTTOM_SIZE, BOTTOM_SIZE_1, FOCUS_BG_TOP_SIZE, FOCUS_BG_BOTTOM_SIZE) \
+#define PART_LIST_EVENT \
+ PART(RECT, "event_block", \
+ mouse_events: 0; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ visible: 0; \
+ } \
+ description { state: "blocked" 0.0; \
+ color: 0 0 0 0; \
+ visible: 1; \
+ } \
+ )
+
+#define PROGRAM_LIST_EVENT \
+ program { name: "content_event_disable"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ script { \
+ set_mouse_events(PART:"event_block", 1); \
+ set_repeat_events(PART:"event_block", 0); \
+ set_state(PART:"event_block", "blocked", 0.0); \
+ } \
+ } \
+ program { name: "content_event_enable"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ script { \
+ set_mouse_events(PART:"event_block", 0); \
+ set_repeat_events(PART:"event_block", 1); \
+ set_state(PART:"event_block", "default", 0.0); \
+ } \
+ }
+
+#define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \
PART(SPACER, "elm.padding.left", \
DESC_FROM_L( \
min: LEFT_SIZE 0; \
min: 0 TOP_SIZE; \
max: -1 TOP_SIZE; \
) \
- description { state: "highlighting" 0.0; \
- inherit: "default" 0.0; \
- } \
- description { state: "highlighted" 0.0; \
- inherit: "highlighting" 0.0; \
- min: 0 HIGHLIGHTED_TOP_SIZE; \
- max: -1 HIGHLIGHTED_TOP_SIZE; \
- } \
) \
PART(SPACER, "elm.padding.bottom", \
DESC_FROM_B( \
min: 0 BOTTOM_SIZE; \
max: -1 BOTTOM_SIZE; \
) \
- description { state: "highlighting" 0.0; \
- inherit: "default" 0.0; \
- } \
- description { state: "highlighted" 0.0; \
- inherit: "highlighting" 0.0; \
- min: 0 HIGHLIGHTED_BOTTOM_SIZE; \
- max: -1 HIGHLIGHTED_BOTTOM_SIZE; \
- } \
- ) \
- PART(RECT, "elm.padding.focus_bg.top", \
- DESC_FROM_T( \
- min: 0 FOCUS_BG_TOP_SIZE; \
- max: -1 FOCUS_BG_TOP_SIZE; \
- color: 0 0 0 0; \
- ) \
- ) \
- PART(RECT, "elm.padding.focus_bg.bottom", \
- DESC_FROM_B( \
- min: 0 FOCUS_BG_BOTTOM_SIZE; \
- max: -1 FOCUS_BG_BOTTOM_SIZE; \
- color: 0 0 0 0; \
- ) \
- ) \
- PART(SPACER, "elm.padding.bottom.1", \
- DESC_FROM_B( \
- min: 0 BOTTOM_SIZE_1; \
- max: -1 BOTTOM_SIZE_1; \
- ) \
)
+#define LIST_PADDING_ICON_LEFT_SIZE_INC 66
+#define LIST_PADDING_ICON_RIGHT_SIZE_INC 66
+
+#define LIST_PADDING_TOP_SIZE_INC 10
+#define LIST_PADDING_BOTTOM_SIZE_INC 9
+
+#define ICON_SIZE 112
+
collections {
BASE_SCALE;
group { name: "elm/genlist/item/2icon/default";
data.item: "focus_bg" "off";
parts {
- PART_LIST_PADDINGS_FOCUS_BG(
- LIST_PADDING_ICON_LEFT_SIZE_INC, LIST_PADDING_ICON_RIGHT_SIZE_INC,
- LIST_PADDING_TOP_SIZE_INC, LIST_PADDING_BOTTOM_SIZE_INC, 0, 0, 0,
- LIST_FOCUS_BG_PADDING_TOP_SIZE_INC, LIST_FOCUS_BG_PADDING_BOTTOM_SIZE_INC
- )
- PART(SWALLOW, "elm.right",
- DESC_RTB("elm.padding.right", "elm.padding.top", "elm.padding.bottom",)
- )
- PART(SWALLOW, "elm.left",
- DESC_LTB("elm.padding.left", "elm.padding.top", "elm.padding.bottom",)
- )
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+
+ PART_LIST_PADDINGS(LIST_PADDING_ICON_LEFT_SIZE_INC, LIST_PADDING_ICON_RIGHT_SIZE_INC, LIST_PADDING_TOP_SIZE_INC, LIST_PADDING_BOTTOM_SIZE_INC)
+
+ PART(SWALLOW, "elm.right", DESC_RTB("elm.padding.right", "elm.padding.top", "elm.padding.bottom",))
+ PART(SWALLOW, "elm.left", DESC_LTB("elm.padding.left", "elm.padding.top", "elm.padding.bottom",))
+
+ PART_LIST_EVENT
+ }
+ programs {
+ PROGRAM_LIST_EVENT
}
}
group { name: "elm/genlist/item/compose_threadlist_item/default";
inherit: "elm/genlist/item/2icon/default";
parts {
- part { name: "elm.left";
+ part {
+ name: "elm.left";
scale: 1;
- description {
+ description {
state: "default" 0.0;
min: ICON_SIZE ICON_SIZE;
max: ICON_SIZE ICON_SIZE;
}
}
}
- part { name: "elm.right";
+ part {
+ name: "elm.right";
scale: 1;
description {
state: "default" 0.0;