[ctxpopup] update Winset GUI v4.5
authorBora Hwang <bora1.hwang@samsung.com>
Mon, 8 Apr 2013 06:27:10 +0000 (15:27 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 10 Apr 2013 11:02:30 +0000 (20:02 +0900)
press mode is changed to IMAGE type (before: RECT)
mask image is deleted

Change-Id: If5e134ade5f3d4c125dd993268beac7637a1dc15

themes/images/tizen-hd/00_more_popup_press.png [moved from themes/images/tizen-hd/00_popup_bubble_mask.png with 83% similarity, mode: 0755]
themes/inc/tizen-hd-inc.edc
themes/widgets/ctxpopup.edc

old mode 100644 (file)
new mode 100755 (executable)
similarity index 83%
rename from themes/images/tizen-hd/00_popup_bubble_mask.png
rename to themes/images/tizen-hd/00_more_popup_press.png
index aba1243..d29cb70
Binary files a/themes/images/tizen-hd/00_popup_bubble_mask.png and b/themes/images/tizen-hd/00_more_popup_press.png differ
index 8a23be1..707d94d 100644 (file)
@@ -99,7 +99,7 @@
 #define CTXPOPUP_WIDTH_MAX_INC 620
 #define CTXPOPUP_TEXT_MAX_INC 572
 #define CTXPOPUP_BUBBLE_BG_IMAGE_BORDER 26 26 22 30
-#define CTXPOPUP_BUBBLE_MASK_IMAGE_BORDER 10 10 10 10
+#define CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER 8 8 8 8
 #define CTXPOPUP_SHADOW_LEFT_PADDING 10
 #define CTXPOPUP_SHADOW_RIGHT_PADDING 10
 #define CTXPOPUP_SHADOW_TOP_PADDING 8
 #define CTXPOPUP_SCROLLER_PADDING 8
 #define CTXPOPUP_SCROLLER_MIN_SIZE_INC 9 18
 #define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 22
-#define CTXPOPUP_BG_COLOR_INC 0 0 0 0
-#define CTXPOPUP_BG_PRESS_COLOR_INC 42 137 194 255
 #define CTXPOPUP_MAIN_TEXT_COLOR_INC 255 255 255 255
 #define CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC 255 255 255 178
 #define CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
index c80f7a8..260a6c3 100644 (file)
                name: "elm/ctxpopup/base/default";
                images {
                        image: "00_popup_bubble_bg.png" COMP;
-                       image: "00_popup_bubble_mask.png" COMP;
                }
                parts {
                        part {
                                        rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
                                }
                        }
-                       part {
-                               name: "mask";
-                               type: IMAGE;
-                               scale: 1;
-                               description {
-                                       state: "default" 0.0;
-                                       visible: 0;
-                                       rel1 {to:"elm.swallow.content";}
-                                       rel2 {to:"elm.swallow.content";}
-                                       image {
-                                               normal: "00_popup_bubble_mask.png";
-                                               border: CTXPOPUP_BUBBLE_MASK_IMAGE_BORDER;
-                                               border_scale: 1;
-                                       }
-                               }
-                               description {
-                                       state: "visible" 0.0;
-                                       inherit: "default" 0.0;
-                                       visible: 1;
-                                       rel1 {to:"elm.swallow.content";}
-                                       rel2 {to:"elm.swallow.content";}
-                               }
-                       }
-               }
-               programs {
-                       program {
-                               name: "show";
-                               signal: "mouse,down,1";
-                               source: "elm.swallow.content";
-                               action: STATE_SET "visible" 0.0;
-                               target: "mask";
-                       }
-                       program {
-                               name: "hide";
-                               signal: "mouse,up,1";
-                               source: "elm.swallow.content";
-                               action: STATE_SET "default" 0.0;
-                               target: "mask";
-                       }
                }
        }
 
        group {
                name: "elm/ctxpopup/text_style_item/default";
 
+               images {
+                       image: "00_more_popup_press.png" COMP;
+               }
+
                data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
 
                parts {
                        part {
                                name: "bg";
                                mouse_events: 0;
-                               type: RECT;
+                               type: IMAGE;
                                scale: 1;
                                description {
                                        state: "default" 0.0;
-                                       color: CTXPOPUP_BG_COLOR_INC;
-                                       visible: 1;
+                                       visible: 0;
                                        min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING*2) 1;
                                        max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING*2) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
                                }
                                description {
                                        state: "clicked" 0.0;
                                        inherit: "default" 0.0;
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
+                                       visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                                description {
                                        state: "clicked_separator" 0.0;
                                        inherit: "default" 0.0;
+                                       visible: 1;
                                        rel1 { relative: 0.0 1.0; to_y: "separator2"; }
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                        }
                        part {
 ///////////////////////////////////////////////////////////////////////////////
        group {
                name: "elm/ctxpopup/text_style_item_horizontal/default";
+
+               images {
+                       image: "00_more_popup_press.png" COMP;
+               }
+
                parts {
                        part {
                                name: "event_blocker";
                        part {
                                name: "bg";
                                mouse_events: 0;
-                               type: RECT;
+                               type: IMAGE;
                                scale: 1;
                                description {
                                        state: "default" 0.0;
-                                       color: CTXPOPUP_BG_COLOR_INC;
-                                       visible: 1;
+                                       visible: 0;
                                        min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
                                }
                                description {
                                        state: "clicked" 0.0;
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                                description {
                                        state: "clicked_separator" 0.0;
                                        rel1 { relative: 1.0 0.0; to_x: "separator2"; }
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                        }
                        part {
 ///////////////////////////////////////////////////////////////////////////////
        group {
                name: "elm/ctxpopup/icon_style_item/default";
+
+               images {
+                       image: "00_more_popup_press.png" COMP;
+               }
+
                parts {
                        part {
                                name: "event_blocker";
                                name: "bg";
                                scale: 1;
                                mouse_events: 0;
-                               type: RECT;
+                               type: IMAGE;
                                description {
                                        state: "default" 0.0;
-                                       color: CTXPOPUP_BG_COLOR_INC;
-                                       visible: 1;
+                                       visible: 0;
                                        min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
                                        max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
                                }
                                description {
                                        state: "clicked" 0.0;
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                                description {
                                        state: "clicked_separator" 0.0;
                                        rel1 { relative: 1.0 0.0; to_x: "separator2"; }
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                        }
                        part {
        group {
                name: "elm/ctxpopup/icon_text_style_item/default";
 
+               images {
+                       image: "00_more_popup_press.png" COMP;
+               }
+
                data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
 
                parts {
                        part {
                                name: "bg";
                                mouse_events: 0;
-                               type: RECT;
+                               type: IMAGE;
                                description {
                                        state: "default" 0.0;
-                                       color: CTXPOPUP_BG_COLOR_INC;
-                                       visible: 1;
+                                       visible: 0;
                                }
                                description {
                                        state: "clicked" 0.0;
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                                description {
                                        state: "clicked_separator" 0.0;
                                        rel1 { relative: 0.0 1.0; to_y: "separator2"; }
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                        }
                        part {
                name: "elm/ctxpopup/base/more/default";
                images {
                        image: "00_popup_bubble_bg.png" COMP;
-                       image: "00_popup_bubble_mask.png" COMP;
                }
                parts {
                        part {
                                        rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
                                }
                        }
-                       part {
-                               name: "mask";
-                               type: IMAGE;
-                               scale: 1;
-                               description {
-                                       state: "default" 0.0;
-                                       visible: 0;
-                                       rel1 {to:"elm.swallow.content";}
-                                       rel2 {to:"elm.swallow.content";}
-                                       image {
-                                               normal: "00_popup_bubble_mask.png";
-                                               border: CTXPOPUP_BUBBLE_MASK_IMAGE_BORDER;
-                                               border_scale: 1;
-                                       }
-                               }
-                               description {
-                                       state: "visible" 0.0;
-                                       inherit: "default" 0.0;
-                                       visible: 1;
-                                       rel1 {to:"elm.swallow.content";}
-                                       rel2 {to:"elm.swallow.content";}
-                               }
-                       }
-               }
-               programs {
-                       program {
-                               name: "show";
-                               signal: "mouse,down,1";
-                               source: "elm.swallow.content";
-                               action: STATE_SET "visible" 0.0;
-                               target: "mask";
-                       }
-                       program {
-                               name: "hide";
-                               signal: "mouse,up,1";
-                               source: "elm.swallow.content";
-                               action: STATE_SET "default" 0.0;
-                               target: "mask";
-                       }
                }
        }
 ///////////////////////////////////////////////////////////////////////////////
        group {
                name: "elm/ctxpopup/icon_text_style_item/more/default";
+
+               images {
+                       image: "00_more_popup_press.png" COMP;
+               }
+
                parts {
                        part {
                                name: "event_blocker";
                        part {
                                name: "bg";
                                mouse_events: 0;
-                               type: RECT;
+                               type: IMAGE;
                                scale: 1;
                                description {
                                        state: "default" 0.0;
-                                       color: CTXPOPUP_BG_COLOR_INC;
-                                       visible: 1;
+                                       visible: 0;
                                        min: (CTXPOPUP_MORE_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) 1;
                                        max: (CTXPOPUP_MORE_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
                                }
                                description {
                                        state: "clicked" 0.0;
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                                description {
                                        state: "clicked_separator" 0.0;
                                        rel1 { relative: 0.0 1.0; to_y: "separator2"; }
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                        }
                        part {
                                                font: "Tizen:style=Roman";
                                                size: CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC;
                                                align: 0.0 0.5;
-                                               min: 1 1;
+                                               min: 0 1;
                                                text_class: "list_item";
                                        }
                                }
@@ -5260,6 +5240,11 @@ group {
 ///////////////////////////////////////////////////////////////////////////////
        group {
                name: "elm/ctxpopup/text_style_item/toolbar_segmentedcontrol";
+
+               images {
+                                       image: "00_more_popup_press.png" COMP;
+                               }
+
                parts {
                        part {
                                name: "event_blocker";
@@ -5273,25 +5258,32 @@ group {
                        part {
                                name: "bg";
                                mouse_events: 0;
-                               type: RECT;
+                               type: IMAGE;
                                scale: 1;
                                description {
                                        state: "default" 0.0;
-                                       color: CTXPOPUP_BG_COLOR_INC;
-                                       visible: 1;
+                                       visible: 0;
                                        min: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) 1;
                                        max: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
                                }
                                description {
                                        state: "clicked" 0.0;
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                                description {
                                        state: "clicked_separator" 0.0;
                                        rel1 { relative: 0.0 1.0; to_y: "separator2"; }
-                                       color: CTXPOPUP_BG_PRESS_COLOR_INC;
                                        visible: 1;
+                                       image {
+                                               normal: "00_more_popup_press.png";
+                                               border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
+                                               border_scale: 1;
+                                       }
                                }
                        }
                        part {