From 16ce5c40b35bfcb0d9e223a1d8aa9ac082419a79 Mon Sep 17 00:00:00 2001 From: Bora Hwang Date: Thu, 13 Jun 2013 19:32:11 +0900 Subject: [PATCH] [ctxpopup] fixed scale and indentation Change-Id: I40c5b381f76855874aec295dc1c749fc674e02c0 --- themes/widgets/ctxpopup.edc | 898 ++++++++++++++++++++++---------------------- 1 file changed, 454 insertions(+), 444 deletions(-) diff --git a/themes/widgets/ctxpopup.edc b/themes/widgets/ctxpopup.edc index 7758a28..8f63641 100644 --- a/themes/widgets/ctxpopup.edc +++ b/themes/widgets/ctxpopup.edc @@ -68,7 +68,7 @@ group { part { name:"bottom_padding"; type: RECT; - scale: 0; + scale: 1; description { state: "default" 0.0; min: 0 CTXPOPUP_MOVE_PAD_INC; @@ -138,6 +138,7 @@ group { name: "swallow"; type: SWALLOW; clip_to: "layout_clip"; + scale: 1; description { state: "default" 0.0; visible: 0; @@ -170,6 +171,7 @@ group { part { name: "layout_clip"; type: RECT; + scale: 1; description { state: "default" 0.0; color: 255 255 255 0; @@ -397,7 +399,7 @@ group { part { name:"bottom_padding"; type: RECT; - scale: 0; + scale: 1; description { state: "default" 0.0; min: 0 20; @@ -467,6 +469,7 @@ group { name: "swallow"; type: SWALLOW; clip_to: "layout_clip"; + scale: 1; description { state: "default" 0.0; visible: 0; @@ -499,6 +502,7 @@ group { part { name: "layout_clip"; type: RECT; + scale: 1; description { state: "default" 0.0; color: 255 255 255 0; @@ -720,7 +724,7 @@ group { part { name:"bottom_padding"; type: RECT; - scale: 0; + scale: 1; description { state: "default" 0.0; min: 0 CTXPOPUP_MOVE_PAD_INC; @@ -790,6 +794,7 @@ group { name: "swallow"; type: SWALLOW; clip_to: "layout_clip"; + scale: 1; description { state: "default" 0.0; visible: 0; @@ -822,6 +827,7 @@ group { part { name: "layout_clip"; type: RECT; + scale: 1; description { state: "default" 0.0; color: 255 255 255 0; @@ -1798,6 +1804,7 @@ group { part { name: "arrow_left_top_padding"; type: RECT; + scale: 1; mouse_events: 0; description { state: "default" 0.0; @@ -1811,6 +1818,7 @@ group { part { name: "arrow_right_bottom_padding"; type: RECT; + scale: 1; mouse_events: 0; description { state: "default" 0.0; @@ -1824,6 +1832,7 @@ group { part { name: "elm.swallow.content"; type: SWALLOW; + scale: 1; description { state: "default" 0.0; align: 0 0; @@ -1833,6 +1842,7 @@ group { } part { name: "access.outline"; type: RECT; + scale: 1; repeat_events: 1; description { state: "default" 0.0; fixed: 1 1; @@ -1845,100 +1855,101 @@ group { } /////////////////////////////////////////////////////////////////////////////// - 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; - image: "00_popup_bubble_tail_top.png" COMP; - image: "00_popup_bubble_tail_bottom.png" COMP; - } - parts { - part { - name: "ctxpopup_arrow"; - type: IMAGE; - scale: 1; - description { - state: "default" 0.0; - min: CTXPOPUP_ARROW_SIZE_INC; - max: CTXPOPUP_ARROW_SIZE_INC; - fixed: 1 1; - visible: 0; - align: 0.5 0.5; - } - description { - state: "left" 0.0; - min: CTXPOPUP_ARROW_SIZE_INC; - max: CTXPOPUP_ARROW_SIZE_INC; - fixed: 1 1; - align: 1.0 0.5; - image { - normal: "00_popup_bubble_tail_left.png"; - } - } - description { - state: "right" 0.0; - min: CTXPOPUP_ARROW_SIZE_INC; - max: CTXPOPUP_ARROW_SIZE_INC; - fixed: 1 1; - align: 0.0 0.5; - image { - normal: "00_popup_bubble_tail_right.png"; - } - } - description { - state: "top" 0.0; - min: CTXPOPUP_ARROW_SIZE_INC; - max: CTXPOPUP_ARROW_SIZE_INC; - fixed: 1 1; - align: 0.5 1.0; - image { - normal: "00_popup_bubble_tail_top.png"; - } - } - description { - state: "bottom" 0.0; - min: CTXPOPUP_ARROW_SIZE_INC; - max: CTXPOPUP_ARROW_SIZE_INC; - fixed: 1 1; - align: 0.5 0.0; - image { - normal: "00_popup_bubble_tail_bottom.png"; - } - } - } - } - programs { - program { - name: "enable_left_arrow"; - signal: "elm,state,left"; - source: "elm"; - action: STATE_SET "left" 0.0; - target: "ctxpopup_arrow"; - } - program { - name: "enable_right_arrow"; - signal: "elm,state,right"; - source: "elm"; - action: STATE_SET "right" 0.0; - target: "ctxpopup_arrow"; - } - program { - name: "enable_top_arrow"; - signal: "elm,state,top"; - source: "elm"; - action: STATE_SET "top" 0.0; - target: "ctxpopup_arrow"; - } - program { - name: "enable_bottom_arrow"; - signal: "elm,state,bottom"; - source: "elm"; - action: STATE_SET "bottom" 0.0; - target: "ctxpopup_arrow"; - } - } - } +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; + image: "00_popup_bubble_tail_top.png" COMP; + image: "00_popup_bubble_tail_bottom.png" COMP; + } + parts { + part { + name: "ctxpopup_arrow"; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + max: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + visible: 0; + align: 0.5 0.5; + } + description { + state: "left" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + max: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 1.0 0.5; + image { + normal: "00_popup_bubble_tail_left.png"; + } + } + description { + state: "right" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + max: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.0 0.5; + image { + normal: "00_popup_bubble_tail_right.png"; + } + } + description { + state: "top" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + max: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.5 1.0; + image { + normal: "00_popup_bubble_tail_top.png"; + } + } + description { + state: "bottom" 0.0; + min: CTXPOPUP_ARROW_SIZE_INC; + max: CTXPOPUP_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.5 0.0; + image { + normal: "00_popup_bubble_tail_bottom.png"; + } + } + } + } + programs { + program { + name: "enable_left_arrow"; + signal: "elm,state,left"; + source: "elm"; + action: STATE_SET "left" 0.0; + target: "ctxpopup_arrow"; + } + program { + name: "enable_right_arrow"; + signal: "elm,state,right"; + source: "elm"; + action: STATE_SET "right" 0.0; + target: "ctxpopup_arrow"; + } + program { + name: "enable_top_arrow"; + signal: "elm,state,top"; + source: "elm"; + action: STATE_SET "top" 0.0; + target: "ctxpopup_arrow"; + } + program { + name: "enable_bottom_arrow"; + signal: "elm,state,bottom"; + source: "elm"; + action: STATE_SET "bottom" 0.0; + target: "ctxpopup_arrow"; + } + } +} /////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/text_style_item/default"; @@ -2175,9 +2186,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis_disabled", 0.0); + set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else - set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } @@ -2191,9 +2202,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis", 0.0); + set_state(PART:"elm.text", "ellipsis", 0.0); else - set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } @@ -2227,9 +2238,9 @@ group { new Float:vl; get_state(PART:"separator2", st, 30, vl); if (!strcmp(st, "default")) - set_state(PART:"bg", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); else - set_state(PART:"bg", "clicked_separator", 0.0); + set_state(PART:"bg", "clicked_separator", 0.0); } } program { @@ -2239,8 +2250,7 @@ group { script { new Float:dx, Float:dy; get_drag(PART:"over2", dx, dy); - if ((abs(dx) > 20) || (abs(dy) > 20)) - { + if ((abs(dx) > 20) || (abs(dy) > 20)) { set_drag(PART:"over2", 0.0, 0.0); set_state(PART:"bg", "default", 0.0); } @@ -2506,9 +2516,9 @@ group { new Float:vl; get_state(PART:"separator2", st, 30, vl); if (!strcmp(st, "default")) - set_state(PART:"bg", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); else - set_state(PART:"bg", "clicked_separator", 0.0); + set_state(PART:"bg", "clicked_separator", 0.0); } } program { @@ -2518,8 +2528,7 @@ group { script { new Float:dx, Float:dy; get_drag(PART:"over2", dx, dy); - if ((abs(dx) > 20) || (abs(dy) > 20)) - { + if ((abs(dx) > 20) || (abs(dy) > 20)) { set_drag(PART:"over2", 0.0, 0.0); set_state(PART:"bg", "default", 0.0); } @@ -2773,9 +2782,9 @@ group { new Float:vl; get_state(PART:"separator2", st, 30, vl); if (!strcmp(st, "default")) - set_state(PART:"bg", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); else - set_state(PART:"bg", "clicked_separator", 0.0); + set_state(PART:"bg", "clicked_separator", 0.0); } } program { @@ -2785,8 +2794,7 @@ group { script { new Float:dx, Float:dy; get_drag(PART:"over2", dx, dy); - if ((abs(dx) > 20) || (abs(dy) > 20)) - { + if ((abs(dx) > 20) || (abs(dy) > 20)) { set_drag(PART:"over2", 0.0, 0.0); set_state(PART:"bg", "default", 0.0); } @@ -2828,6 +2836,7 @@ group { name: "bg"; mouse_events: 0; type: IMAGE; + scale: 1; description { state: "default" 0.0; visible: 0; @@ -3106,9 +3115,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis_disabled", 0.0); + set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else - set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"icon_clip", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } @@ -3122,9 +3131,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis", 0.0); + set_state(PART:"elm.text", "ellipsis", 0.0); else - set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); set_state(PART:"icon_clip", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } @@ -3158,9 +3167,9 @@ group { new Float:vl; get_state(PART:"separator2", st, 30, vl); if (!strcmp(st, "default")) - set_state(PART:"bg", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); else - set_state(PART:"bg", "clicked_separator", 0.0); + set_state(PART:"bg", "clicked_separator", 0.0); } } program { @@ -3170,8 +3179,7 @@ group { script { new Float:dx, Float:dy; get_drag(PART:"over2", dx, dy); - if ((abs(dx) > 20) || (abs(dy) > 20)) - { + if ((abs(dx) > 20) || (abs(dy) > 20)) { set_drag(PART:"over2", 0.0, 0.0); set_state(PART:"bg", "default", 0.0); } @@ -3191,313 +3199,317 @@ group { } /////////////////////////////////////////////////////////////////////////////// - group { - name: "elm/ctxpopup/base/more/default"; - images { - image: "00_popup_bubble_bg.png" COMP; - } - parts { - part { - name:"frame_shadow_left_top_padding"; - type:RECT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING; - max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING; - rel2 { relative: 0 0; } - align: 0 0; - fixed: 1 1; - visible: 0; - } - } - part { - name:"frame_shadow_right_bottom_padding"; - type:RECT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING; - max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING; - rel1{relative: 1 1;} - align: 1 1; - fixed: 1 1; - visible: 0; - } - } - part { - name: "frame_bg"; - type: IMAGE; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - rel1 {to:"frame_shadow_left_top_padding";} - rel2 {to:"frame_shadow_right_bottom_padding";} - min: CTXPOPUP_MORE_WIDTH_MIN_INC 0; - image { - normal: "00_popup_bubble_bg.png"; - border: CTXPOPUP_BUBBLE_BG_IMAGE_BORDER; - border_scale: 1; - } - } - } - 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; - scale: 1; - description { - state: "default" 0.0; - visible: 0; - align: 0 0; - fixed: 1 1; - min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; - max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; - rel1 {relative: 0 0; to: "content_left_top_padding";} - } - } - part { - name: "ctxpopup_frame_right_bottom"; - type: RECT; - scale: 1; - description { - state: "default" 0.0; - visible: 0; - align: 1 1; - fixed: 1 1; - min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; - max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; - rel2 {relative: 1 1; to: "content_right_bottom_padding";} - } - } - part { - name:"content_left_top_padding"; - type:RECT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; - max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; - rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;} - align: 0 0; - fixed: 1 1; - visible: 0; - } - } - part { - name:"content_right_bottom_padding"; - type:RECT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; - max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; - rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;} - align: 1 1; - fixed: 1 1; - visible: 0; - } - } - 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 { - state: "default" 0.0; - align: 0 0; - rel1 {to:"content_left_top_padding"; relative: 1.0 1.0;} - rel2 {to:"content_right_bottom_padding"; relative: 0.0 0.0;} - } - } - part { name: "access.outline"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "frame_bg"; - rel2.to: "frame_bg"; - color: 0 0 0 0; - } - } - } - } +group { + name: "elm/ctxpopup/base/more/default"; + images { + image: "00_popup_bubble_bg.png" COMP; + } + parts { + part { + name:"frame_shadow_left_top_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING; + max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING; + rel2 { relative: 0 0; } + align: 0 0; + fixed: 1 1; + visible: 0; + } + } + part { + name:"frame_shadow_right_bottom_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING; + max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING; + rel1{relative: 1 1;} + align: 1 1; + fixed: 1 1; + visible: 0; + } + } + part { + name: "frame_bg"; + type: IMAGE; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 {to:"frame_shadow_left_top_padding";} + rel2 {to:"frame_shadow_right_bottom_padding";} + min: CTXPOPUP_MORE_WIDTH_MIN_INC 0; + image { + normal: "00_popup_bubble_bg.png"; + border: CTXPOPUP_BUBBLE_BG_IMAGE_BORDER; + border_scale: 1; + } + } + } + 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; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0 0; + fixed: 1 1; + min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; + max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; + rel1 {relative: 0 0; to: "content_left_top_padding";} + } + } + part { + name: "ctxpopup_frame_right_bottom"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 1 1; + fixed: 1 1; + min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; + max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING; + rel2 {relative: 1 1; to: "content_right_bottom_padding";} + } + } + part { + name:"content_left_top_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; + max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; + rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;} + align: 0 0; + fixed: 1 1; + visible: 0; + } + } + part { + name:"content_right_bottom_padding"; + type:RECT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; + max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING; + rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;} + align: 1 1; + fixed: 1 1; + visible: 0; + } + } + part { + name: "arrow_left_top_padding"; + type: RECT; + scale: 1; + 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; + scale: 1; + 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; + scale: 1; + description { + state: "default" 0.0; + align: 0 0; + rel1 {to:"content_left_top_padding"; relative: 1.0 1.0;} + rel2 {to:"content_right_bottom_padding"; relative: 0.0 0.0;} + } + } + part { name: "access.outline"; + type: RECT; + scale: 1; + repeat_events: 1; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to: "frame_bg"; + rel2.to: "frame_bg"; + color: 0 0 0 0; + } + } + } +} /////////////////////////////////////////////////////////////////////////////// group { name: "elm/ctxpopup/icon_text_style_item/more/default"; @@ -3803,9 +3815,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis_disabled", 0.0); + set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else - set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"icon_clip", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } @@ -3819,9 +3831,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis", 0.0); + set_state(PART:"elm.text", "ellipsis", 0.0); else - set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); set_state(PART:"icon_clip", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } @@ -3855,9 +3867,9 @@ group { new Float:vl; get_state(PART:"separator2", st, 30, vl); if (!strcmp(st, "default")) - set_state(PART:"bg", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); else - set_state(PART:"bg", "clicked_separator", 0.0); + set_state(PART:"bg", "clicked_separator", 0.0); } } program { @@ -3867,8 +3879,7 @@ group { script { new Float:dx, Float:dy; get_drag(PART:"over2", dx, dy); - if ((abs(dx) > 20) || (abs(dy) > 20)) - { + if ((abs(dx) > 20) || (abs(dy) > 20)) { set_drag(PART:"over2", 0.0, 0.0); set_state(PART:"bg", "default", 0.0); } @@ -4505,9 +4516,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis_disabled", 0.0); + set_state(PART:"elm.text", "ellipsis_disabled", 0.0); else - set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"elm.text", "disabled", 0.0); set_state(PART:"disclip", "disabled", 0.0); } @@ -4521,9 +4532,9 @@ group { new Float:vl; get_state(PART:"elm.text", st, 30, vl); if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled"))) - set_state(PART:"elm.text", "ellipsis", 0.0); + set_state(PART:"elm.text", "ellipsis", 0.0); else - set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); set_state(PART:"disclip", "default", 0.0); } @@ -4557,9 +4568,9 @@ group { new Float:vl; get_state(PART:"separator2", st, 30, vl); if (!strcmp(st, "default")) - set_state(PART:"bg", "clicked", 0.0); + set_state(PART:"bg", "clicked", 0.0); else - set_state(PART:"bg", "clicked_separator", 0.0); + set_state(PART:"bg", "clicked_separator", 0.0); } } program { @@ -4569,8 +4580,7 @@ group { script { new Float:dx, Float:dy; get_drag(PART:"over2", dx, dy); - if ((abs(dx) > 20) || (abs(dy) > 20)) - { + if ((abs(dx) > 20) || (abs(dy) > 20)) { set_drag(PART:"over2", 0.0, 0.0); set_state(PART:"bg", "default", 0.0); } -- 2.7.4