From 687ae66dadb1ccc1c26ea43ec5fcc3495c5c25d3 Mon Sep 17 00:00:00 2001 From: Bora Hwang Date: Thu, 28 Mar 2013 21:35:40 +0900 Subject: [PATCH] [ctxpopup] more button style ctxpopup has an arrow like other default styles Change-Id: I4e4c9fa7c1f7e9379115637e282abe264117a8cf --- themes/widgets/ctxpopup.edc | 178 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 175 insertions(+), 3 deletions(-) diff --git a/themes/widgets/ctxpopup.edc b/themes/widgets/ctxpopup.edc index 8bbea14..3a5484b 100644 --- a/themes/widgets/ctxpopup.edc +++ b/themes/widgets/ctxpopup.edc @@ -1903,6 +1903,7 @@ /////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/arrow/default"; + alias: "elm/ctxpopup/arrow/more/default"; images { image: "00_popup_bubble_tail_left.png" COMP; image: "00_popup_bubble_tail_right.png" COMP; @@ -1996,9 +1997,6 @@ } } /////////////////////////////////////////////////////////////////////////////// - //more style doesn't have arrow, so it has to be defined but draws nothing. - group { name: "elm/ctxpopup/arrow/more/default";} -/////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/text_style_item/default"; @@ -3306,6 +3304,154 @@ } } } + part { name: "arrow_area_left"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { + relative: 1 1; + to_x:"arrow_left_top_padding"; + to_y: "ctxpopup_frame_left_top"; + } + rel2 { + relative: 1 0; + to_x:"arrow_left_top_padding"; + to_y:"ctxpopup_frame_right_bottom"; + } + } + } + part { name: "arrow_area_right"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 0 0.5; + rel1 { + relative: 0 1; + to_x:"arrow_right_bottom_padding"; + to_y:"ctxpopup_frame_left_top"; + } + rel2 { + relative: 0 0; + to_x:"arrow_right_bottom_padding"; + to_y: "ctxpopup_frame_right_bottom"; + } + } + } + part { name: "arrow_area_up"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.5 1; + rel1 { + relative: 1 1; + to_x: "ctxpopup_frame_left_top"; + to_y: "arrow_left_top_padding"; + } + rel2 { + relative: 0 1; + to_x:"ctxpopup_frame_right_bottom"; + to_y: "arrow_left_top_padding"; + } + } + } + part { name: "arrow_area_down"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.5 0; + rel1 { + relative: 1 0; + to_x:"ctxpopup_frame_left_top"; + to_y:"arrow_right_bottom_padding"; + } + rel2 { + relative: 0 0; + to_x: "ctxpopup_frame_right_bottom"; + to_y:"arrow_right_bottom_padding"; + } + } + } + part { name: "elm.swallow.arrow_up"; + type: SWALLOW; + mouse_events: 0; + scale: 1; + dragable { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_up"; + } + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + visible: 1; + } + } + part { name: "elm.swallow.arrow_down"; + type: SWALLOW; + mouse_events: 0; + scale: 1; + dragable { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_down"; + } + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + visible: 1; + } + } + part { name: "elm.swallow.arrow_left"; + type: SWALLOW; + mouse_events: 0; + scale: 1; + dragable { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_left"; + } + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + visible: 1; + } + } + part { name: "elm.swallow.arrow_right"; + type: SWALLOW; + mouse_events: 0; + scale: 1; + dragable { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_right"; + } + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + visible: 1; + } + } part { name: "ctxpopup_frame_left_top"; type: RECT; @@ -3365,6 +3511,32 @@ } } part { + name: "arrow_left_top_padding"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING; + max: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING; + rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;} + align: 0 0; + visible: 0; + } + } + part { + name: "arrow_right_bottom_padding"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING; + max: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING; + rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;} + align: 1 1; + visible: 0; + } + } + part { name: "elm.swallow.content"; type: SWALLOW; description { -- 2.7.4