From 890c4582caefdd8973645268f0982c6333e07aa4 Mon Sep 17 00:00:00 2001 From: kimcinoo Date: Fri, 18 Feb 2011 10:45:58 +0900 Subject: [PATCH] [ctxpopup] apply nbeat theme - default Change-Id: Iae0f80d90d8a047c89c17b0ed9bece94c087f868 --- themes/groups/ctxpopup.edc | 1614 ++++++++++++++------------ themes/images/nbeat/00_popup_tail_bottom.png | Bin 3107 -> 3094 bytes themes/images/nbeat/00_popup_tail_left.png | Bin 3166 -> 3079 bytes themes/images/nbeat/00_popup_tail_right.png | Bin 3149 -> 3099 bytes themes/images/nbeat/00_popup_tail_top.png | Bin 3097 -> 3116 bytes 5 files changed, 861 insertions(+), 753 deletions(-) diff --git a/themes/groups/ctxpopup.edc b/themes/groups/ctxpopup.edc index c011524..2b80080 100644 --- a/themes/groups/ctxpopup.edc +++ b/themes/groups/ctxpopup.edc @@ -1,5 +1,5 @@ /* - * nBeat-theme + * Beat-theme * * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd. * @@ -30,25 +30,23 @@ /////////////////////////////////////////////////////////////////////////////////////// #define CTXPOPUP_ITEM_PADDING 15 -#define CTXPOPUP_SHADOW_PADDING 10 -#define CTXPOPUP_ITEM_HEIGHT 80 -#define CTXPOPUP_ENTRY_ITEM_HEIGHT 65 -#define CTXPOPUP_ENTRY_ITEM_WIDTH_MAX 150 -#define CTXPOPUP_BTN_HEIGHT 60 -#define CTXPOPUP_CONTENT_WIDTH_MIN 300 -#define CTXPOPUP_CONTENT_WIDTH_MAX 460 +#define CTXPOPUP_SHADOW_PADDING 10 +#define CTXPOPUP_FRAME_CORNER_SIZE 4 4 +#define CTXPOPUP_ITEM_HEIGHT 70 +#define CTXPOPUP_CONTENT_WIDTH_MIN 240 +#define CTXPOPUP_CONTENT_WIDTH_MAX 420 #define CTXPOPUP_CONTENT_HEIGHT_MAX 630 #define CTXPOPUP_SEPARATOR_COLOR 204 198 180 255 #define CTXPOPUP_FONT_COLOR 0 0 0 255 #define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255 -#define CTXPOPUP_DISABLED_FONT_COLOR 0 0 0 127 -#define CTXPOPUP_DISABLED_ICON_COLOR 0 0 0 0 +#define CTXPOPUP_ITEM_DISABLED_COLOR 200 200 200 127 #define CTXPOPUP_ICON_WIDTH 50 #define CTXPOPUP_ICON_HEIGHT 50 -#define CTXPOPUP_ARROW_SIZE 30 -#define CTXPOPUP_LIST_PADDING 7 +#define CTXPOPUP_ARROW_SIZE 30 30 +#define CTXPOPUP_LIST_PADDING 10 #define CTXPOPUP_LIST_SHADOW_PADDING 3 +/////////////////////////////////////////////////////////////////////////////// group { name: "elm/scroller/base/ctxpopup"; script { @@ -86,7 +84,6 @@ scale: 1; description { state: "default" 0.0; - max: CTXPOPUP_CONTENT_WIDTH_MAX CTXPOPUP_CONTENT_HEIGHT_MAX; } } part { @@ -96,7 +93,6 @@ scale: 1; description { state: "default" 0.0; - max: CTXPOPUP_CONTENT_WIDTH_MAX CTXPOPUP_CONTENT_HEIGHT_MAX; align: 0.5 0.5; } } @@ -407,21 +403,55 @@ } } } +/////////////////////////////////////////////////////////////////////////////// + group { + name: "elm/ctxpopup/bg/pass_event"; + alias: "elm/ctxpopup/bg/extended/entry/pass_event"; + parts { + part { + name: "bg"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "visible" 0.0; + visible: 0; + } + } + } + programs { + program { + name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "bg"; + } + program { + name: "hide"; + signal: "elm,state,hide"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + } + } + } +/////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/bg/default"; parts { part { - name: "ctxpopup_bg"; + name: "bg"; type: RECT; mouse_events: 1; description { state: "default" 0.0; - color: 0 0 0 0; - visible: 1; + visible: 0; } description { state: "visible" 0.0; - inherit: "default" 0.0; color: 0 0 0 0; visible: 1; } @@ -431,7 +461,7 @@ program { name: "clicked_event"; signal: "mouse,clicked,1"; - source: "ctxpopup_bg"; + source: "bg"; action: SIGNAL_EMIT "elm,action,click" ""; } program { @@ -439,29 +469,23 @@ signal: "elm,state,show"; source: "elm"; action: STATE_SET "visible" 0.0; - target: "ctxpopup_bg"; - transition: "DECELERATE" 0.5; + target: "bg"; } program { name: "hide"; signal: "elm,state,hide"; source: "elm"; action: STATE_SET "default" 0.0; - target: "ctxpopup_bg"; - transition: "DECELERATE" 0.5; + target: "bg"; } } } +/////////////////////////////////////////////////////////////////////////////// group { - name: "elm/ctxpopup/base/default"; + name: "elm/ctxpopup/base/no_bg_content"; images { image: "ctxpopup_bg.png" COMP; image: "ctxpopup_shadow.png" COMP; - image: "ctxpopup_list_bg.png" COMP; - image: "ctxpopup_left_bottom_corner.png" COMP; - image: "ctxpopup_right_top_corner.png" COMP; - image: "ctxpopup_left_top_corner.png" COMP; - image: "ctxpopup_right_bottom_corner.png" COMP; } parts { part { @@ -483,8 +507,8 @@ scale: 1; mouse_events: 0; description { - min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; - max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; + min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING; + max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING; rel1{relative: 1 1;} align: 0 0; fixed: 1 1; @@ -499,19 +523,13 @@ description { state: "default" 0.0; rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;} - rel2 {to:"frame_shadow_right_bottom_padding";} - image { + rel2 {to:"frame_shadow_right_bottom_padding";} image { normal: "ctxpopup_shadow.png"; border: 10 10 10 10; border_scale: 1; } - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; color: 255 255 255 255; - } + } } part { name: "ctxpopup_frame"; @@ -523,6 +541,8 @@ border: 10 10 10 10; border_scale: 1; } + rel1 {to:"content_left_top_padding"; relative: 1 1;} + rel2 {to:"content_right_bottom_padding"; relative: 0 0;} } } part { @@ -536,34 +556,11 @@ align: 0 0; fixed: 1 1; visible: 0; - rel1 {to:"elm.swallow.scroller"; relative: 1 1;} + rel1 {to:"elm.swallow.content"; relative: 1 1;} } } part { - name: "ctxpopup_list"; - type: IMAGE; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - max: CTXPOPUP_CONTENT_WIDTH_MAX CTXPOPUP_CONTENT_HEIGHT_MAX; - image { - normal: "ctxpopup_list_bg.png"; - border: 10 10 14 14; - border_scale: 1; - } - rel1 {to: "elm.swallow.scroller";} - rel2 {to: "list_shadow_right_bottom_padding";} - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { - name:"scroller_left_top_padding"; + name:"content_left_top_padding"; type:RECT; scale: 1; mouse_events: 0; @@ -577,16 +574,16 @@ } } part { - name:"scroller_right_bottom_padding"; + name:"content_right_bottom_padding"; type:RECT; scale: 1; mouse_events: 0; description { min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; - rel1 { to:"elm.swallow.btns"; relative: 1 0;} - rel2 { to:"elm.swallow.btns"; relative: 1 0;} - align: 0 1; + rel1 { relative: 1 1;} + rel2 { relative: 1 1;} + align: 1 1; fixed: 1 1; visible: 0; } @@ -596,204 +593,253 @@ type: SWALLOW; description { state: "default" 0.0; - rel1 {to:"scroller_left_top_padding"; relative: 1 1;} - rel2 {to:"scroller_right_bottom_padding"; relative: 0 0;} + rel1 {to:"content_left_top_padding"; relative: 1 1;} + rel2 {to:"content_right_bottom_padding"; relative: 0 0;} } } - part { - name: "elm.swallow.scroller"; - type: SWALLOW; - description { - state: "default" 0.0; - rel1 {to:"scroller_left_top_padding"; relative: 1 1;} - rel2 {to:"scroller_right_bottom_padding"; relative: 0 0;} + } + } +/////////////////////////////////////////////////////////////////////////////// + group { + name: "elm/ctxpopup/base/default"; + images { + image: "00_popup_bubble_bg_left_top.png" COMP; + image: "00_popup_bubble_bg_right_top.png" COMP; + image: "00_popup_bubble_bg_left_bottom.png" COMP; + image: "00_popup_bubble_bg_right_bottom.png" COMP; + image: "00_popup_bubble_bg_no_shadow.png" COMP; + image: "00_popup_bubble_bg.png" COMP; + } + parts { + part { + name:"frame_shadow_left_top_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { + min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING; + max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING; + rel2 { relative: 0 0; } + align: 1 1; + fixed: 1 1; + visible: 0; } - description { - state: "enabled" 0.0; - //TODO: Remove ! - min: CTXPOPUP_CONTENT_WIDTH_MIN 0; - rel1 {to:"scroller_left_top_padding"; relative: 1 1;} - rel2 {to:"scroller_right_bottom_padding"; relative: 0 0;} + } + part { + name:"frame_shadow_right_bottom_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { + min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING; + max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING; + rel1{relative: 1 1;} + align: 0 0; + fixed: 1 1; + visible: 0; } - } + } part { - name: "list_left_bottom_corner"; + name: "frame_shadow"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 0 1; } - rel2 { to: "elm.swallow.content"; relative: 0 1; } - align: 0 1; - fixed: 1 1; + rel1 {to:"frame_shadow_left_top_padding";} + rel2 {to:"frame_shadow_right_bottom_padding";} image { - normal: "ctxpopup_left_bottom_corner.png"; - } - color: 255 255 255 0; + normal: "00_popup_bubble_bg.png"; + border: 10 10 10 10; + border_scale: 1; + } + color: 255 255 255 255; } + } + + part { + name: "ctxpopup_frame_left_top"; + type: IMAGE; + scale: 1; description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } + align: 0 0; + min: CTXPOPUP_FRAME_CORNER_SIZE; + max: CTXPOPUP_FRAME_CORNER_SIZE; + image { + normal: "00_popup_bubble_bg_left_top.png"; + } + } } + part { - name: "list_right_top_corner"; + name: "ctxpopup_frame_right_top"; type: IMAGE; scale: 1; - mouse_events: 0; description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 1 0; } - rel2 { to: "elm.swallow.content"; relative: 1 0; } align: 1 0; - fixed: 1 1; + min: CTXPOPUP_FRAME_CORNER_SIZE; + max: CTXPOPUP_FRAME_CORNER_SIZE; image { - normal: "ctxpopup_right_top_corner.png"; - } - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } + normal: "00_popup_bubble_bg_right_top.png"; + } + } + } + part { - name: "list_left_top_corner"; + name: "ctxpopup_frame_left_bottom"; type: IMAGE; scale: 1; - mouse_events: 0; description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 0 0; } - rel2 { to: "elm.swallow.content"; relative: 0 0; } - align: 0 0; - fixed: 1 1; + align: 0 1; + min: CTXPOPUP_FRAME_CORNER_SIZE; + max: CTXPOPUP_FRAME_CORNER_SIZE; image { - normal: "ctxpopup_left_top_corner.png"; - } - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } + normal: "00_popup_bubble_bg_left_bottom.png"; + } + } + } + part { - name: "list_right_bottom_corner"; + name: "ctxpopup_frame_right_bottom"; type: IMAGE; scale: 1; - mouse_events: 0; description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 1 1; } - rel2 { to: "elm.swallow.content"; relative: 1 1; } align: 1 1; - fixed: 1 1; + min: CTXPOPUP_FRAME_CORNER_SIZE; + max: CTXPOPUP_FRAME_CORNER_SIZE; image { - normal: "ctxpopup_right_bottom_corner.png"; - } - color: 255 255 255 0; - } + normal: "00_popup_bubble_bg_right_bottom.png"; + } + } + } + + part { + name: "ctxpopup_frame_top"; + type: IMAGE; + scale: 1; description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } + image { + normal: "00_popup_bubble_bg_no_shadow.png"; + } + align: 0 0; + rel1 {to:"ctxpopup_frame_left_top"; relative: 1 0;} + rel2 {to:"ctxpopup_frame_right_top"; relative: 0 1;} + } + } + + part { + name: "ctxpopup_frame"; + type: IMAGE; + scale: 1; + description { + image { + normal: "00_popup_bubble_bg_no_shadow.png"; + } + align: 0 0; + rel1 {to:"ctxpopup_frame_left_top"; relative: 0 1;} + rel2 {to:"ctxpopup_frame_right_bottom"; relative: 1 0;} + } + } + + part { + name: "ctxpopup_frame_bottom"; + type: IMAGE; + scale: 1; + description { + image { + normal: "00_popup_bubble_bg_no_shadow.png"; + } + align: 0 0; + rel1 {to:"ctxpopup_frame_left_bottom"; relative: 1 0;} + rel2 {to:"ctxpopup_frame_right_bottom"; relative: 0 1;} + } + } + part { - name:"btns_right_bottom_padding"; + name:"list_shadow_right_bottom_padding"; type:RECT; scale: 1; mouse_events: 0; - description { - state: "default" 0.0; - min: CTXPOPUP_LIST_PADDING 0; - max: CTXPOPUP_LIST_PADDING 0; - align: 1 1; - fixed: 1 1; + description { + min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING; + max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING; + align: 0 0; + fixed: 1 1; visible: 0; + rel1 {to:"elm.swallow.content"; relative: 1 1;} } + } + part { + name:"content_left_top_padding"; + type:RECT; + scale: 1; + mouse_events: 0; description { - state: "enabled" 0.0; + state: "default" 0.0; + min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; + max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; + align: 0 0; + fixed: 1 1; + visible: 0; + } + } + part { + name:"content_right_bottom_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING; + rel1 { relative: 1 1;} + rel2 { relative: 1 1;} align: 1 1; fixed: 1 1; visible: 0; } - } - part { - name: "elm.swallow.btns"; + } + part { + name: "elm.swallow.content"; type: SWALLOW; - scale: 1; description { state: "default" 0.0; - rel1 {relative: 0 1;} - rel2 {to: "btns_right_bottom_padding"; relative: 0 0;} - align: 0.5 1; - fixed: 1 1; + align: 0 0; + rel1 {to:"ctxpopup_frame_left_top"; relative: 1.0 0.0;} + rel2 {to:"ctxpopup_frame_right_bottom"; relative: 0.0 1.0;} } description { - state: "enabled" 0.0; - align: 0.5 1; - fixed: 1 1; - rel1 {to: "scroller_left_top_padding"; relative: 1 1; } - rel2 {to: "btns_right_bottom_padding"; relative: 0 0;} - } - } - } - programs { - program { - name: "enable_buttons"; - signal: "elm,state,buttons,enable"; + state: "horizontal" 0.0; + align: 0 0; + rel1 {to:"ctxpopup_frame_left_top"; relative: 0.0 1.0;} + rel2 {to:"ctxpopup_frame_right_bottom"; relative: 1.0 0.0;} + } + } + } + programs { + program { + name: "vertical"; + signal: "elm,state,vertical"; source: "elm"; - action: STATE_SET "enabled" 0.0; - target: "btns_right_bottom_padding"; - target: "elm.swallow.btns"; - target: "elm.swallow.scroller"; + script { + set_state(PART:"elm.swallow.content", "default", 0.0); + } } - program { - name: "show"; - signal: "elm,state,show"; + program { + name: "horizontal"; + signal: "elm,state,horizontal"; source: "elm"; - action: STATE_SET "show" 0.0; - target: "ctxpopup_list"; - target: "frame_shadow"; - target: "list_left_top_corner"; - target: "list_left_bottom_corner"; - target: "list_right_top_corner"; - target: "list_right_bottom_corner"; - transition: "DECELERATE" 0.5; + script { + set_state(PART:"elm.swallow.content", "horizontal", 0.0); + } } - program { - name: "hide"; - signal: "elm,state,hide"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "ctxpopup_list"; - target: "frame_shadow"; - target: "ctxpopup_frame"; - target: "list_left_top_corner"; - target: "list_left_bottom_corner"; - target: "list_right_top_corner"; - target: "list_right_bottom_corner"; - } } } - group { name: "elm/ctxpopup/arrow/default"; - images { + + + +/////////////////////////////////////////////////////////////////////////////// + group { name: "elm/ctxpopup/arrow/default"; + images { image: "00_popup_tail_left.png" COMP; image: "00_popup_tail_right.png" COMP; image: "00_popup_tail_top.png" COMP; @@ -806,49 +852,48 @@ scale: 1; description { state: "default" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ARROW_SIZE; + max: CTXPOPUP_ARROW_SIZE; fixed: 1 1; visible: 0; align: 0.5 0.5; } description { state: "left" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ARROW_SIZE; + max: CTXPOPUP_ARROW_SIZE; fixed: 1 1; - align: 0.0 0.5; + align: 1.0 0.5; image { normal: "00_popup_tail_left.png"; } } description { state: "right" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ARROW_SIZE; + max: CTXPOPUP_ARROW_SIZE; fixed: 1 1; - align: 1.0 0.5; + align: 0.0 0.5; image { normal: "00_popup_tail_right.png"; - } } description { state: "top" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ARROW_SIZE; + max: CTXPOPUP_ARROW_SIZE; fixed: 1 1; - align: 0.5 0.0; + align: 0.5 1.0; image { normal: "00_popup_tail_top.png"; } } description { state: "bottom" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ARROW_SIZE; + max: CTXPOPUP_ARROW_SIZE; fixed: 1 1; - align: 0.5 1.0; + align: 0.5 0.0; image { normal: "00_popup_tail_bottom.png"; } @@ -886,53 +931,12 @@ } } } - group { name: "elm/ctxpopup/separator/default"; - parts { - part { - name: "separator"; - type: RECT; - scale: 1; - description { - state: "vertical" 0.0; - min: 1 1; - max: CTXPOPUP_CONTENT_WIDTH_MAX 1; - fixed: 1 1; - color: CTXPOPUP_SEPARATOR_COLOR; - } - description { - state: "horizontal" 0.0; - min: 1 1; - max: 1 CTXPOPUP_ITEM_HEIGHT; - fixed: 1 1; - color: CTXPOPUP_SEPARATOR_COLOR; - } - } - } - programs { - program { - name: "vertical"; - signal: "elm,state,vertical"; - source: "elm"; - action: STATE_SET "vertical" 0.0; - target: "separator"; - } - program { - name: "horizontal"; - signal: "elm,state,horizontal"; - source: "elm"; - action: STATE_SET "horizontal" 0.0; - target: "separator"; - } - } - } +/////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/text_style_item/default"; images { image: "00_list_bar_press.png" COMP; } - script { - public disabled_v; - } parts { part { name: "event_blocker"; @@ -960,9 +964,50 @@ } } part { - name: "left_padding"; + name: "bottom_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 0.5 1; + min: 0 1; + max: 999999 1; + rel2 { offset: 0 0.5; } + } + description { + state: "horizontal" 0.0; + visible: 0; + } + } + part { + name: "right_separator"; + mouse_events: 0; type: RECT; scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + rel2 { offset: 0.5 0; } + visible: 0; + } + description { + state: "horizontal" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + rel2 { offset: 0.5 0; } + visible: 1; + } + } + part { + name: "left_padding"; + scale: 1; mouse_events: 0; description { state: "default" 0.0; @@ -999,15 +1044,9 @@ inherit: "default" 0.0; color: CTXPOPUP_CLICKED_FONT_COLOR; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - color: CTXPOPUP_DISABLED_FONT_COLOR; - } } part { name: "right_padding"; - type: RECT; scale: 1; mouse_events: 0; description { @@ -1027,11 +1066,6 @@ description { state: "default" 0.0; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } } part { name: "over2"; @@ -1039,80 +1073,88 @@ repeat_events: 1; description { state: "default" 0.0; - color: 255 255 255 0; } - description { - state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "disabled" 0.0; + visible: 1; + color: CTXPOPUP_ITEM_DISABLED_COLOR; } } } programs { program { - name: "item_unclick3"; + name: "item_unclick"; signal: "mouse,up,1"; source: "over1"; action: SIGNAL_EMIT "elm,action,click" ""; - } + } program { name: "disable"; signal: "elm,state,disabled"; source: "elm"; - after: "disable_text"; - } - program { - name: "disable_text"; - script { - set_state(PART:"elm.text", "disabled", 0.0); - set_int( disabled_v, 1 ); - } + action: STATE_SET "disabled" 0.0; + target: "disclip"; } program { name: "enable"; signal: "elm,state,enabled"; source: "elm"; - after: "enable_text"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "vertical"; + signal: "elm,state,vertical"; + source: "elm"; + script { + set_state(PART:"bottom_separator", "default", 0.0); + set_state(PART:"right_separator", "default", 0.0); + } } program { - name: "enable_text"; + name: "horizontal"; + signal: "elm,state,horizontal"; + source: "elm"; script { - set_state(PART:"elm.text", "enabled", 0.0); - set_int( disabled_v, 0 ); + set_state(PART:"bottom_separator", "horizontal", 0.0); + set_state(PART:"right_separator", "horizontal", 0.0); } - } + } + program { - name: "item_click"; + name: "item_click2"; signal: "mouse,down,1"; source: "over2"; script { - if(!get_int( disabled_v)) { - set_state(PART:"elm.text", "clicked", 0.0); - set_state(PART:"bg", "clicked", 0.0); - } + set_state(PART:"elm.text", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); } } - } - program { - name: "item_unclick"; - signal: "mouse,up,1"; - source: "over2"; - script { - if(!get_int(disabled_v)) { + program { + name: "item_unclick2"; + signal: "mouse,up,1"; + source: "over2"; + script { set_state(PART:"elm.text", "default", 0.0); set_state(PART:"bg", "default", 0.0); - } - } + } + } } } - group { +/////////////////////////////////////////////////////////////////////////////// + group { name: "elm/ctxpopup/icon_style_item/default";\ images { image: "00_list_bar_press.png" COMP; } - script { - public disabled_v; - } parts { part { name: "event_blocker"; @@ -1141,7 +1183,6 @@ } part { name: "left_top_padding"; - type: RECT; scale: 1; description { min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_PADDING; @@ -1151,6 +1192,20 @@ fixed: 1 1; } } + part { + name: "right_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + rel2 { offset: 0 0.5; } + } + } part { name: "elm.swallow.icon"; type: SWALLOW; @@ -1158,21 +1213,15 @@ description { state: "default" 0.0; min: (CTXPOPUP_ICON_WIDTH+30) CTXPOPUP_ICON_HEIGHT; - max: (CTXPOPUP_ICON_WIDTH+30) CTXPOPUP_ICON_HEIGHT; + max: (CTXPOPUP_ICON_WIDTH+30) CTXPOPUP_ICON_HEIGHT; align: 0.5 0.5; aspect: 1.0 1.0; rel1 { to: "left_top_padding"; relative: 1 1; } rel2 { to: "right_bottom_padding"; relative: 0 0; } } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - color: CTXPOPUP_DISABLED_ICON_COLOR; - } } part { name: "right_bottom_padding"; - type: RECT; scale: 1; description { min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_PADDING; @@ -1190,11 +1239,6 @@ description { state: "default" 0.0; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } } part { name: "over2"; @@ -1202,18 +1246,25 @@ repeat_events: 1; description { state: "default" 0.0; - color: 255 255 255 0; } - description { - state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "disabled" 0.0; + visible: 1; + color: CTXPOPUP_ITEM_DISABLED_COLOR; } } } programs { program { - name: "item_unclick3"; + name: "item_unclick"; signal: "mouse,up,1"; source: "over1"; action: SIGNAL_EMIT "elm,action,click" ""; @@ -1222,58 +1273,40 @@ name: "disable"; signal: "elm,state,disabled"; source: "elm"; - after: "disable_icon"; - } - program { - name: "disable_icon"; - script { - set_state(PART:"elm.swallow.icon", "disabled", 0.0); - set_int(disabled_v, 1); - } + action: STATE_SET "disabled" 0.0; + target: "disclip"; } program { name: "enable"; signal: "elm,state,enabled"; source: "elm"; - after: "enable_icon"; - } - program { - name: "enable_icon"; - script { - set_state(PART:"elm.swallow.icon", "default", 0.0); - set_int(disabled_v, 0); - } + action: STATE_SET "default" 0.0; + target: "disclip"; } program { - name: "button_click"; + name: "item_click2"; signal: "mouse,down,1"; source: "over2"; script { - if(!get_int( disabled_v)) { - set_state(PART:"bg", "clicked", 0.0); - } + set_state(PART:"bg", "clicked", 0.0); } } - } - program { - name: "button_unclick"; - signal: "mouse,up,1"; - source: "over2"; - script { - if(!get_int(disabled_v)) { + program { + name: "item_unclick2"; + signal: "mouse,up,1"; + source: "over2"; + script { set_state(PART:"bg", "default", 0.0); - } - } + } + } } } -group { +/////////////////////////////////////////////////////////////////////////////// + group { name: "elm/ctxpopup/icon_text_style_item/default"; images { image: "00_list_bar_press.png" COMP; } - script { - public disabled_v; - } parts { part { name: "event_blocker"; @@ -1301,7 +1334,6 @@ group { } part { name: "icon_left_padding"; - type: RECT; scale: 1; mouse_events: 0; description { @@ -1313,6 +1345,48 @@ group { visible: 0; } } + part { + name: "bottom_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 0.5 1; + min: 0 1; + max: 999999 1; + rel2 { offset: 0 0.5; } + } + description { + state: "horizontal" 0.0; + visible: 0; + } + } + part { + name: "right_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + rel2 { offset: 0.5 0; } + visible: 0; + } + description { + state: "horizontal" 0.0; + color: CTXPOPUP_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + rel2 { offset: 0.5 0; } + visible: 1; + } + } part { name: "elm.swallow.icon"; type: SWALLOW; @@ -1325,15 +1399,9 @@ group { aspect: 1.0 1.0; rel1 { to:"icon_left_padding"; relative: 1 0; } } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - color: CTXPOPUP_DISABLED_ICON_COLOR; - } } part { name: "icon_right_padding"; - type: RECT; scale: 1; mouse_events: 0; description { @@ -1361,9 +1429,9 @@ group { rel2 {relative: 0.0 1.0; to_x: "text_right_padding";} color: CTXPOPUP_FONT_COLOR; text { - font: "SLP:style=Roman"; - size: 30; - align: 0.0 0.5; + font: "SLP:style=Roman"; + size: 30; + align: 0.0 0.5; min: 1 1; } } @@ -1372,11 +1440,6 @@ group { inherit: "default" 0.0; color: CTXPOPUP_CLICKED_FONT_COLOR; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - color: CTXPOPUP_DISABLED_FONT_COLOR; - } } part { name: "text_right_padding"; @@ -1400,11 +1463,6 @@ group { description { state: "default" 0.0; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } } part { name: "over2"; @@ -1412,18 +1470,25 @@ group { repeat_events: 1; description { state: "default" 0.0; - color: 255 255 255 0; } - description { - state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "disabled" 0.0; + visible: 1; + color: CTXPOPUP_ITEM_DISABLED_COLOR; } } } programs { program { - name: "item_unclick3"; + name: "item_unclick"; signal: "mouse,up,1"; source: "over1"; action: SIGNAL_EMIT "elm,action,click" ""; @@ -1432,69 +1497,76 @@ group { name: "disable"; signal: "elm,state,disabled"; source: "elm"; - after: "disable_text"; - } - program { - name: "disable_text"; - script { - set_state(PART:"elm.text", "disabled", 0.0); - set_int( disabled_v, 1 ); - } + action: STATE_SET "disabled" 0.0; + target: "disclip"; } program { name: "enable"; signal: "elm,state,enabled"; source: "elm"; - after: "enable_text"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "vertical"; + signal: "elm,state,vertical"; + source: "elm"; + script { + set_state(PART:"bottom_separator", "default", 0.0); + set_state(PART:"right_separator", "default", 0.0); + } } program { - name: "enable_text"; + name: "horizontal"; + signal: "elm,state,horizontal"; + source: "elm"; script { - set_state(PART:"elm.text", "enabled", 0.0); - set_int( disabled_v, 0 ); + set_state(PART:"bottom_separator", "horizontal", 0.0); + set_state(PART:"right_separator", "horizontal", 0.0); } - } + } program { - name: "button_click"; + name: "item_click2"; signal: "mouse,down,1"; source: "over2"; script { - if(!get_int( disabled_v)) { - set_state(PART:"elm.text", "clicked", 0.0); - set_state(PART:"bg", "clicked", 0.0); - } + set_state(PART:"elm.text", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); } } - } - program { - name: "button_unclick"; - signal: "mouse,up,1"; - source: "over2"; - script { - if(!get_int(disabled_v)) { + program { + name: "item_unclick2"; + signal: "mouse,up,1"; + source: "over2"; + script { set_state(PART:"elm.text", "default", 0.0); set_state(PART:"bg", "default", 0.0); - } - } - } + } + } + } } /////////////////////////////////////////////////////////////////////////////////////// -#define CTXPOPUP_ENTRY_LIST_PADDING_LEFT_TOP 5 -#define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM 9 -#define CTXPOPUP_ENTRY_FONT_COLOR 118 118 118 255 -#define CTXPOPUP_ENTRY_SEPARATOR_COLOR 171 171 171 255 - +#define CTXPOPUP_ENTRY_LIST_PADDING_LEFT 3 +#define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6 +#define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3 +#define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6 +#define CTXPOPUP_ENTRY_FONT_COLOR 255 255 255 255 +#define CTXPOPUP_ENTRY_SEPARATOR_COLOR 0 0 0 0 +#define CTXPOPUP_ENTRY_ITEM_HEIGHT 44 +#define CTXPOPUP_ENTRY_ICON_SIZE 40 +#define CTXPOPUP_ENTRY_ITEM_WIDTH_MAX 150 +#define CTXPOPUP_ENTRY_LIST_SHADOW_PADDING 3 +#define CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR 200 200 200 127 +#define CTXPOPUP_ENTRY_ARROW_SIZE 14 +/////////////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/base/extended/entry"; + alias: "elm/ctxpopup/base/extended/entry/pass_event"; images { image: "ctxpopup_bg.png" COMP; image: "ctxpopup_shadow.png" COMP; - image: "00_btn_copy&paste_n.png" COMP; - image: "ctxpopup_left_bottom_corner.png" COMP; - image: "ctxpopup_right_top_corner.png" COMP; - image: "ctxpopup_left_top_corner.png" COMP; - image: "ctxpopup_right_bottom_corner.png" COMP; + image: "copypaste_btn_bg.png" COMP; } parts { part { @@ -1516,8 +1588,8 @@ group { scale: 1; mouse_events: 0; description { - min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM; - max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM; + min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM; + max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM; rel1{relative: 1 1;} align: 0 0; fixed: 1 1; @@ -1551,25 +1623,36 @@ group { type: IMAGE; scale: 1; description { + visible: 1; + rel2 {offset: -1 11;} image { - normal: "00_btn_copy&paste_n.png"; - border: 6 10 10 10; + normal: "copypaste_btn_bg.png"; + border: 0 0 0 0; border_scale: 1; } } } part { + name: "ctxpopup_frame_rect"; + type: RECT; + scale: 1; + description { + visible: 0; + color: 0 0 0 255; + } + } + part { name:"list_shadow_right_bottom_padding"; type:RECT; scale: 1; mouse_events: 0; description { - min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING; - max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING; + min: CTXPOPUP_ENTRY_LIST_SHADOW_PADDING CTXPOPUP_ENTRY_LIST_SHADOW_PADDING; + max: CTXPOPUP_ENTRY_LIST_SHADOW_PADDING CTXPOPUP_ENTRY_LIST_SHADOW_PADDING; align: 0 0; fixed: 1 1; visible: 0; - rel1 {to:"elm.swallow.scroller"; relative: 1 1;} + rel1 {to:"elm.swallow.content"; relative: 1 1;} } } part { @@ -1579,13 +1662,7 @@ group { mouse_events: 0; description { state: "default" 0.0; - max: CTXPOPUP_CONTENT_WIDTH_MAX CTXPOPUP_CONTENT_HEIGHT_MAX; - //image { - // normal: "ctxpopup_list_bg.png"; - // border: 10 10 14 14; - // border_scale: 1; - //} - rel1 {to: "elm.swallow.scroller";} + rel1 {to: "elm.swallow.content";} rel2 {to: "list_shadow_right_bottom_padding";} color: 255 255 255 0; } @@ -1595,32 +1672,31 @@ group { color: 255 255 255 255; } } - part { - name:"scroller_left_top_padding"; + name:"content_left_top_padding"; type:RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; - min: CTXPOPUP_ENTRY_LIST_PADDING_LEFT_TOP CTXPOPUP_ENTRY_LIST_PADDING_LEFT_TOP; - max: CTXPOPUP_ENTRY_LIST_PADDING_LEFT_TOP CTXPOPUP_ENTRY_LIST_PADDING_LEFT_TOP; + min: CTXPOPUP_ENTRY_LIST_PADDING_LEFT CTXPOPUP_ENTRY_LIST_PADDING_TOP; + max: CTXPOPUP_ENTRY_LIST_PADDING_LEFT CTXPOPUP_ENTRY_LIST_PADDING_TOP; align: 0 0; fixed: 1 1; visible: 0; } } part { - name:"scroller_right_bottom_padding"; + name:"content_right_bottom_padding"; type:RECT; scale: 1; mouse_events: 0; description { - min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM; - max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM; - rel1 { to:"elm.swallow.btns"; relative: 1 0;} - rel2 { to:"elm.swallow.btns"; relative: 1 0;} - align: 0 1; + min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM; + max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM; + rel1 { relative: 1 1;} + rel2 { relative: 1 1;} + align: 1 1; fixed: 1 1; visible: 0; } @@ -1630,202 +1706,22 @@ group { type: SWALLOW; description { state: "default" 0.0; - rel1 {to:"scroller_left_top_padding"; relative: 1 1;} - rel2 {to:"scroller_right_bottom_padding"; relative: 0 0;} + rel1 {to:"content_left_top_padding"; relative: 1 1;} + rel2 {to:"content_right_bottom_padding"; relative: 0 0;} } } - part { - name: "elm.swallow.scroller"; - type: SWALLOW; - description { - state: "default" 0.0; - rel1 {to:"scroller_left_top_padding"; relative: 1 1;} - rel2 {to:"scroller_right_bottom_padding"; relative: 0 0;} - } - description { - state: "enabled" 0.0; - min: CTXPOPUP_CONTENT_WIDTH_MIN 0; - rel1 {to:"scroller_left_top_padding"; relative: 1 1;} - rel2 {to:"scroller_right_bottom_padding"; relative: 0 0;} - } - } - part { - name: "list_left_bottom_corner"; - type: IMAGE; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 0 1; } - rel2 { to: "elm.swallow.content"; relative: 0 1; } - align: 0 1; - fixed: 1 1; - //image { - // normal: "ctxpopup_left_bottom_corner.png"; - //} - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { - name: "list_right_top_corner"; - type: IMAGE; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 1 0; } - rel2 { to: "elm.swallow.content"; relative: 1 0; } - align: 1 0; - fixed: 1 1; - //image { - // normal: "ctxpopup_right_top_corner.png"; - //} - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { - name: "list_left_top_corner"; - type: IMAGE; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 0 0; } - rel2 { to: "elm.swallow.content"; relative: 0 0; } - align: 0 0; - fixed: 1 1; - //image { - // normal: "ctxpopup_left_top_corner.png"; - //} - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { - name: "list_right_bottom_corner"; - type: IMAGE; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: 10 9; - max: 10 9; - rel1 { to: "elm.swallow.content"; relative: 1 1; } - rel2 { to: "elm.swallow.content"; relative: 1 1; } - align: 1 1; - fixed: 1 1; - //image { - // normal: "ctxpopup_right_bottom_corner.png"; - //} - color: 255 255 255 0; - } - description { - state: "show" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - - part { - name:"btns_right_bottom_padding"; - type:RECT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM 0; - max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM 0; - align: 1 1; - fixed: 1 1; - visible: 0; - } - description { - state: "enabled" 0.0; - min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM; - max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM CTXPOPUP_ENTRY_LIST_PADDING_RIGHT_BOTTOM; - align: 1 1; - fixed: 1 1; - visible: 0; - } - } - part { - name: "elm.swallow.btns"; - type: SWALLOW; - scale: 1; - description { - state: "default" 0.0; - rel1 {relative: 0 1;} - rel2 {to: "btns_right_bottom_padding"; relative: 0 0;} - align: 0.5 1; - fixed: 1 1; - } - description { - state: "enabled" 0.0; - align: 0.5 1; - fixed: 1 1; - rel1 {to: "scroller_left_top_padding"; relative: 1 1; } - rel2 {to: "btns_right_bottom_padding"; relative: 0 0;} - } - } } - programs { - program { - name: "enable_buttons"; - signal: "elm,state,buttons,enable"; - source: "elm"; - action: STATE_SET "enabled" 0.0; - target: "btns_right_bottom_padding"; - target: "elm.swallow.btns"; - target: "elm.swallow.scroller"; - } - program { - name: "show"; - signal: "elm,state,show"; - source: "elm"; - action: STATE_SET "show" 0.0; - target: "ctxpopup_list"; - target: "frame_shadow"; - target: "list_left_top_corner"; - target: "list_left_bottom_corner"; - target: "list_right_top_corner"; - target: "list_right_bottom_corner"; - transition: "DECELERATE" 0.5; - } - program { - name: "hide"; - signal: "elm,state,hide"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "ctxpopup_list"; - target: "frame_shadow"; - target: "list_left_top_corner"; - target: "list_left_bottom_corner"; - target: "list_right_top_corner"; - target: "list_right_bottom_corner"; - } - } } - group { name: "elm/ctxpopup/arrow/extended/entry"; +/////////////////////////////////////////////////////////////////////////////////////// + group { + name: "elm/ctxpopup/arrow/extended/entry"; + alias: "elm/ctxpopup/arrow/extended/entry/pass_event"; + images { + image: "copypaste_btn_arrow_left.png" COMP; + image: "copypaste_btn_arrow_right.png" COMP; + image: "copypaste_btn_arrow_top.png" COMP; + image: "copypaste_btn_arrow_bottom.png" COMP; + } parts { part { name: "ctxpopup_arrow"; @@ -1833,39 +1729,51 @@ group { scale: 1; description { state: "default" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; + max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; fixed: 1 1; visible: 0; align: 0.5 0.5; } description { state: "left" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; + max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; fixed: 1 1; align: 0.0 0.5; + image { + normal: "copypaste_btn_arrow_left.png"; + } } description { state: "right" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; + max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; fixed: 1 1; - align: 1.0 0.5; + align: 1.0 0.5; + image { + normal: "copypaste_btn_arrow_right.png"; + } } description { state: "top" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; + max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; fixed: 1 1; align: 0.5 0.0; + image { + normal: "copypaste_btn_arrow_top.png"; + } } description { state: "bottom" 0.0; - min: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; - max: CTXPOPUP_ARROW_SIZE CTXPOPUP_ARROW_SIZE; + min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; + max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE; fixed: 1 1; align: 0.5 1.0; + image { + normal: "copypaste_btn_arrow_bottom.png"; + } } } } @@ -1900,53 +1808,13 @@ group { } } } - - group { name: "elm/ctxpopup/separator/default"; - parts { - part { - name: "separator"; - type: RECT; - scale: 1; - description { - state: "vertical" 0.0; - min: 1 1; - max: CTXPOPUP_CONTENT_WIDTH_MAX 1; - fixed: 1 1; - color: CTXPOPUP_ENTRY_SEPARATOR_COLOR; - } - description { - state: "horizontal" 0.0; - min: 1 1; - max: 1 CTXPOPUP_ITEM_HEIGHT; - fixed: 1 1; - color: CTXPOPUP_ENTRY_SEPARATOR_COLOR; - } - } - } - programs { - program { - name: "vertical"; - signal: "elm,state,vertical"; - source: "elm"; - action: STATE_SET "vertical" 0.0; - target: "separator"; - } - program { - name: "horizontal"; - signal: "elm,state,horizontal"; - source: "elm"; - action: STATE_SET "horizontal" 0.0; - target: "separator"; - } - } - } +/////////////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/text_style_item/extended/entry"; + alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event"; images { - image: "00_list_bar_press.png" COMP; - } - script { - public disabled_v; + image: "copypaste_btn_normal.png" COMP; + image: "copypaste_btn_press.png" COMP; } parts { part { @@ -1957,26 +1825,58 @@ group { color: 0 0 0 0; } } + part { + name: "left_bg_padding"; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + align: 0 0.5; + fixed: 1 1; + visible: 0; + } + } + part { + name: "right_bg_padding"; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + fixed: 1 0; + align: 1.0 0.5; + } + } part { name: "bg"; mouse_events: 0; type: IMAGE; description { state: "default" 0.0; - visible: 0; + rel1 {to:"left_bg_padding"; relative: 1 0;} + rel2 {to:"right_bg_padding"; relative: 0 1;} + image { + normal: "copypaste_btn_normal.png"; + border: 3 3 3 3; + border_scale: 1; + } } description { state: "clicked" 0.0; + inherit: "default" 0.0; image { - normal: "00_list_bar_press.png"; - border: 10 10 10 10; + normal: "copypaste_btn_press.png"; + border: 3 3 3 3; border_scale: 1; } } } part { name: "left_padding"; - type: RECT; scale: 1; mouse_events: 0; description { @@ -1989,6 +1889,33 @@ group { } } part { + name: "bottom_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + color: CTXPOPUP_ENTRY_SEPARATOR_COLOR; + align: 0.5 1; + min: 0 1; + max: 999999 1; + } + } + part { + name: "right_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_ENTRY_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + } + } + part { name: "elm.text"; type: TEXT; mouse_events: 0; @@ -2003,9 +1930,9 @@ group { rel2 {relative: 0.0 1.0; to: "right_padding";} color: CTXPOPUP_ENTRY_FONT_COLOR; text { - font: "SLP:style=Roman"; - size: 26; - align: 0.5 0.5; + font: "SLP:style=Roman"; + size: 20; + align: 0.5 0.5; min: 1 1; } } @@ -2014,15 +1941,9 @@ group { inherit: "default" 0.0; color: CTXPOPUP_CLICKED_FONT_COLOR; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - color: CTXPOPUP_DISABLED_FONT_COLOR; - } } part { name: "right_padding"; - type: RECT; scale: 1; mouse_events: 0; description { @@ -2042,11 +1963,6 @@ group { description { state: "default" 0.0; } - description { - state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } } part { name: "over2"; @@ -2054,18 +1970,25 @@ group { repeat_events: 1; description { state: "default" 0.0; - color: 255 255 255 0; } - description { - state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "disabled" 0.0; + visible: 1; + color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR; } } } programs { program { - name: "item_unclick3"; + name: "item_unclick"; signal: "mouse,up,1"; source: "over1"; action: SIGNAL_EMIT "elm,action,click" ""; @@ -2074,50 +1997,235 @@ group { name: "disable"; signal: "elm,state,disabled"; source: "elm"; - after: "disable_text"; - } - program { - name: "disable_text"; - script { - set_state(PART:"elm.text", "disabled", 0.0); - set_int( disabled_v, 1 ); - } + action: STATE_SET "disabled" 0.0; + target: "disclip"; } program { name: "enable"; signal: "elm,state,enabled"; source: "elm"; - after: "enable_text"; + action: STATE_SET "default" 0.0; + target: "disclip"; } - program { - name: "enable_text"; - script { - set_state(PART:"elm.text", "enabled", 0.0); - set_int( disabled_v, 0 ); - } - } program { - name: "item_click"; + name: "item_click2"; signal: "mouse,down,1"; source: "over2"; script { - if(!get_int( disabled_v)) { - set_state(PART:"elm.text", "clicked", 0.0); - set_state(PART:"bg", "clicked", 0.0); - } + set_state(PART:"elm.text", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); } } } program { - name: "item_unclick"; + name: "item_unclick2"; signal: "mouse,up,1"; source: "over2"; script { - if(!get_int(disabled_v)) { - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"bg", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"bg", "default", 0.0); + } + } + } +/////////////////////////////////////////////////////////////////////////////// + group { + name: "elm/ctxpopup/icon_style_item/extended/entry";\ + images { + image: "copypaste_btn_normal.png" COMP; + image: "copypaste_btn_press.png" COMP; + } + parts { + part { + name: "event_blocker"; + mouse_events: 1; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { + name: "left_bg_padding"; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + align: 0 0.5; + fixed: 1 1; + visible: 0; + } + } + part { + name: "right_bg_padding"; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT; + fixed: 1 0; + align: 1.0 0.5; + } + } + part { + name: "bg"; + mouse_events: 0; + type: IMAGE; + description { + state: "default" 0.0; + rel1 {to:"left_bg_padding"; relative: 1 0;} + rel2 {to:"right_bg_padding"; relative: 0 1;} + image { + normal: "copypaste_btn_normal.png"; + border: 3 3 3 3; + border_scale: 1; + } + } + description { + state: "clicked" 0.0; + inherit: "default" 0.0; + image { + normal: "copypaste_btn_press.png"; + border: 3 3 3 3; + border_scale: 1; + } + } + } + part { + name: "left_top_padding"; + type: RECT; + scale: 1; + description { + min: 6 2; + max: 6 2; + visible: 0; + align: 0 0; + fixed: 1 1; + color: 255 0 0 255; + } + } + part { + name: "right_bottom_padding"; + type: RECT; + scale: 1; + description { + min: 6 2; + max: 6 2; + visible: 0; + align: 1 1; + fixed: 1 1; + color: 0 0 255 255; + } + } + part { + name: "right_separator"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: CTXPOPUP_ENTRY_SEPARATOR_COLOR; + align: 1 0.5; + min: 1 0; + max: 1 999999; + } + } + part { + name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: CTXPOPUP_ENTRY_ICON_SIZE CTXPOPUP_ENTRY_ICON_SIZE; + max: CTXPOPUP_ENTRY_ICON_SIZE CTXPOPUP_ENTRY_ICON_SIZE; + align: 0.5 0.5; + aspect: 1.0 1.0; + rel1 { to: "left_top_padding"; relative: 1 1; } + rel2 { to: "right_bottom_padding"; relative: 0 0; } + } + } + part { + name: "elm.swallow.icon.paint"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 0 255; + rel1 { to: "elm.swallow.icon"; } + rel2 { to: "elm.swallow.icon"; } + } + } + part { + name: "over1"; + mouse_events: 1; + repeat_events: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + } + } + part { + name: "over2"; + mouse_events: 1; + repeat_events: 1; + description { + state: "default" 0.0; + } + } + part { + name: "disclip"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; } + description { + state: "disabled" 0.0; + visible: 1; + color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR; + } + } + } + programs { + program { + name: "item_unclick"; + signal: "mouse,up,1"; + source: "over1"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + program { + name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { + name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + program { + name: "item_click2"; + signal: "mouse,down,1"; + source: "over2"; + script { + set_state(PART:"bg", "clicked", 0.0); + } } + program { + name: "item_unclick2"; + signal: "mouse,up,1"; + source: "over2"; + script { + set_state(PART:"bg", "default", 0.0); + } + } } } diff --git a/themes/images/nbeat/00_popup_tail_bottom.png b/themes/images/nbeat/00_popup_tail_bottom.png index 928d22cee7ca958ec4bbbb49de69b8ca7904610c..535f302cd4adfaf7a5b7620dffccc6b1014bb539 100644 GIT binary patch delta 433 zcmV;i0Z#s-7?v0ziBL{Q4GJ0x0000DNk~Le0000U0000U2nGNE06Q?QqOmq!3J(Ti zOGiWi{{a60|De66laV18e*gz`Nliru+X4{+6BozuHSGWZ0Z2(iK~zY`?UgZ0!%z^% ze|;ap58$WpBiwLqw^=9%orJChC!wq0S`b`abSqt&p*RVGAa)Wu6`Tr!AY>{OTuvyV zFC=Y~LGs^n?{dFf?%iE$nv5QRGwRh{04{(u;EDz3r$J?C>El20k($(Wp_Q bM*mp9z0y?n^}XN>00000NkvXXu0mjfsSmXo delta 449 zcmV;y0Y3hg7^4^=iBL{Q4GJ0x0000DNk~Le0000g0000S2nGNE02kmb>ywTO7qKH; z3V$GDNK#Dz0D2_=0Dyx40Qvs_0D$QL0Cg|`0P0`>06Lfe02gnPU&TfM00B-(L_t(| z+RT`-Yr;Sjhd+=03;tt;f*?3a2cgiZlao+z?WiEQb}f_&g)SYO3a)}66r2P>5CVaK z%L^P5&0TVryWf@!$(Q7N@7|@g{Qa5$kAFlS1v~?*$T{B>kN_Rv6e;8qcu{h&2Ko^~ z?tup&RocmSU>Xr*CSQ7&JE|upUx&btUQBvo@$~~3UsnBPLi@S_dPVK2D4~2!qP!$xvcijekCT z9RUl|>B%&%eO&;rHe;SmT=}|{PoDV#b>V9&P5odyI9FLc>i9a4c7$)xI=;?>}5E{gy2Sv49r&y0dNSO@ZpZ r=1qO?>f(2fhm73Uw){A7mh%7;P!d*eMqhUa00000NkvXXu0mjf^U%ST diff --git a/themes/images/nbeat/00_popup_tail_left.png b/themes/images/nbeat/00_popup_tail_left.png index 9f46eb7a0996a92bc5084a7fec43775655405582..07a987f654afdf65e8090aab69cc7e59c40ede7d 100644 GIT binary patch delta 418 zcmV;T0bTyy7>5`kiBL{Q4GJ0x0000DNk~Le0000U0000U2nGNE06Q?QqOmq!3J(Ti zOGiWi{{a60|De66laV18e*gz`Nliru+X4{+6bkFN&+`BP0Xa!TK~zY`#n!z_13?r( z;cqsODj*0#Dj^`GjVOX*6+}`6Um$M~uo5h6Y?ZVTtAG&DE_Nx>S%@H5+xi}Y%?isB z)J-_i&`($K%-0M}8CbM~Dy?dnm%|2E#{E^vw~RHK6Py*w&7GrbJH02}03q>*8<4*&oF M07*qoM6N<$g7Oisp8x;= delta 508 zcmV06Lfe02gnPU&TfM00D_fL_t(| z+Ps)QO9L?&haazp;8ZAdDhLODfI?j2C$$J^wgoix$>%H&WjeqyWoRFooY28yS^G)CexJVIR#WJ4&&wvI< zgkk%@M+p-J7R&q+cm>AmpQi$#A@BekRehgEhE47B+Ns-iU4R4N3YY^U-^0F2N5G@KU8m&(R5tQi$U}EkdSWA=g@2~H z?S@;x9Waaadu;+{HuBS$Z=*V;#zsCWtO_^)u5ILp5>;ef>DWg8K(a=bKy4#Gk?sHz z;2e1C16BgRfnR!B3Gf8$0-t>W0lt7e;Jz;)zzR46j)9*(faMZZT=%9CQ`}T7L=?M} zr>Kfu>tQs-K0Qqo#a)`HAjMtV#7)kML;BKAii2khrHz;3D8r1>##wQ+=}Bp`QrfgC yjy?gmDHa*In-q)9_;rd!|HY_MEDrpy_-_EuSY5OTbmKDs00003*D4Fk*q*HLB1e+nLpDxcq;DX{5$ zc(tgwKOT6DD$CX|z%+0XRSu#`$r1)A0eiqzRGG1avn-`uziJHwOabkv(u^u)OE^md zxQQwiYZ#yk+(wmp(S1BfTEMpRp=VKXf9k3Fsx=HyN$cLQh5^bzGpe+$;Vg6i0Urak zyf04_0KNfR&WCf$cs0HR<_ASbfj@wKV8!|HJj?*YO!X76;e6;=9+_upYCEHDjJy^1 z($Ux|ss-}EcWG+7mfzz;V6kZQw~Aj06Lfe02gnPU&TfM00DSOL_t(| z+Pu~=YZO5k#_?Y+hmcALq!NUHA3)e@Ed?R4V4X5xu(c2*m0*=RWkg7wQn*2|vbt?< zN!t4iwyCbsW)@;F;r6ogKFu!6EPtN=&VM`X)?z;UgEM@>%D_~0Gid!JUq9d%o++Hk zt@|2RcpU|VJ^aK;6cDy?itl(D0qpY@3%ra1!VAoC6a|DGT;Lo}B7l9~=eEzIfKcVp zIfw$nE@t?gcXV-JKRRD9>)Ny%0qk>tMc1Y(3JCj{cWrtX1(e6-Ti2$Gu1z};z<)kR zx$S-wP(BK;x;8aYK>5(0b!|HB+O!=3>~n%2U7Plzfbb?Ou3;0!LH0j?z&TKGd*?!ux>5 h6#h?XQH6K&cK}GnYRcf=oIL;l002ovPDHLkV1geW(!T%z diff --git a/themes/images/nbeat/00_popup_tail_top.png b/themes/images/nbeat/00_popup_tail_top.png index eec3fed836f381529ea00c9ebf6f0c4dcf39538e..786f4b0481c57c818478a0478869fefb87ea0655 100644 GIT binary patch delta 456 zcmV;(0XP1c7_1l}iBL{Q4GJ0x0000DNk~Le0000U0000U2nGNE06Q?QqOmq!3J(Ti zOGiWi{{a60|De66laV18e*gz`Nliru+X4{+5+;u|1eO2*0bWT&K~zY`?Up@D13?gm zpCphfAP9n$5D)?u5;16_P1s^>;{Jj73j`~{R{1CFXh`&O9|7Us@^<$g=AGG@gR{-#%{}>&`O+dzA`s1Js6=UVs&2-D6f(ACG_n%mSxgrIb3@tF(dkFI$?x zL8?}Jm0Ga4^2gRsVAEK4l^E<*%AuI*5rcUM`F>4mb!P%7KovMi6tP!n0sWXgX2)1} zHZj<%EC9EmV&mv7e{{7$WUIrq=p}#>3b7YzByx@qfsGVq!76YR$!f3C1TKIQ>1oSY zr(?lhWe&Ip=2M=6Pr$OV?s=Tm-3*|Fe|AUa*sJUVHpAI(y~^GXtG&t^a5*&Uvd{;x yZmhd2c$JxOU#nAk^$dVUF|@a7K?!5E^95C+SW@U7ON0Ob3IG5}MNUMnLSTZgqrNf# delta 439 zcmV;o0Z9I=7?~I$iBL{Q4GJ0x0000DNk~Le0000g0000S2nGNE02kmb>ywTO7qKH; z3V$GDNK#Dz0D2_=0Dyx40Qvs_0D$QL0Cg|`0P0`>06Lfe02gnPU&TfM00BfvL_t(| z+RT?ROT$nUMvtik1VJct5`==_8tCLI2!i0+RS>$m3PPt&PC`p3C!tU%xcUPeI{BYm zZly@Sq%k+|y|X35<0S8d`*N`U`ox(b(0>DFo{JtjOI`qPKn{EZYp;bfN68~#2^^c~ z%HC{pqOU-)b$tpffKE!HLtwPy{xvX3MRe1p;t9BoExO%h84I8vQ}l0_iWA_&9xS-1 z>QYev^U$JIT`KN@hft#XcBz;HgAk(ocB$A5gKnFmb-Psb>kfk~K$nUe;MrTWX@8fB zu?f40HtkZ;u>{UMM7_FHbZr>qO+>xBR1ARWe?{BsQZcfDP+PREE~|z?QAf1xF3Wat zWrvtb(NJ9~&VlzT(a>Eg?(D!VMPqcSm;hJ1L}PVXHVl^bllUtdyGupSKCV1Vs7u8q h@RB9grQ-2t0JWej{30d(Bme*a00>D%PDHLkV1k+)xgP)k -- 2.7.4