[Genlist] modified expandable arrow color
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / genlist / genlist_macro.edc
index edf0ef2..ee402bc 100755 (executable)
 #define GENLIST_PROLOG_NORMAL \
       GENLIST_PROLOG \
       data.item: "treesize" GENLIST_TREESIZE_DEFAULT; \
-      data.item: "flips" "elm.flip.icon elm.flip.content elm.flip.eraser"; \
+      data.item: "flips" "elm.flip.icon elm.flip.content"; \
       images { \
          image : "00_list_group_bg.png" COMP; \
          image : "00_list_group_bg_press.png" COMP; \
 
 #define GENLIST_PROLOG_DIALOGUE \
       GENLIST_PROLOG \
-      data.item: "flips" "elm.flip.icon elm.flip.content elm.flip.eraser"; \
+      data.item: "flips" "elm.flip.icon elm.flip.content"; \
       images { \
          image : "00_list_group_bg.png" COMP; \
          image : "00_list_group_bg_press.png" COMP; \
       } \
       description { state: "editmode" 0.0; \
          inherit: "default" 0.0; \
-         min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
-         max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
+         min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_BTN_02_SIZE) 0; \
+         max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_BTN_02_SIZE) 0; \
       } \
    ) \
    GENLIST_PART_IMAGE("bg_dialogue", \
          fixed: 1 0; \
          align: 1.0 0.5; \
          rel1.relative: 1 0; \
-         min: GENLIST_PADDING_SIZE_RIGHT 0; \
-         max: GENLIST_PADDING_SIZE_RIGHT -1; \
+         min: GENLIST_PADDING_SIZE_DEFAULT 0; \
+         max: GENLIST_PADDING_SIZE_DEFAULT -1; \
       } \
    ) \
    GENLIST_PART_ICON("elm.icon.edit", \
          inherit: "default" 0.0; \
          visible: 1; \
          fixed: 1 1; \
-         min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
-         max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
+         min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
+         max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
       } \
    )
 
             } \
             description { state: "editmode" 0.0; \
                inherit: "default" 0.0; \
-               min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) 0; \
-               max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) -1; \
+               min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_BTN_02_SIZE) 0; \
+               max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_BTN_02_SIZE) -1; \
             } \
          ) \
          GENLIST_PART_EDITBTN
                color: GENLIST_LIST_BG_COLOR;\
             }\
          ) \
-         GENLIST_PART_SPACER("elm.flip.padding.left",  \
-            description { state: "default" 0.0; \
-               min: 26 0; \
-               max: 26 -1; \
-               fixed: 1 0; \
-               align: 0 0.5; \
-               rel2.relative: 0 1; \
-            } \
-         ) \
          GENLIST_PART_SPACER("elm.flip.padding.right", \
             description { state: "default" 0.0; \
                min: 26 0; \
             } \
          ) \
          GENLIST_PART_ICON("elm.flip.content", \
-            GENLIST_DESCRIPTION("elm.flip.padding.left", "elm.flip.padding.eraser.left",  \
+            GENLIST_DESCRIPTION("elm.padding.left", "elm.flip.padding.icon.left",  \
                "elm.padding.top", "elm.padding.bottom", \
                visible: 0; \
                aspect: 1 1; \
+               min: 0 96; \
             ) \
             description { state: "flipped" 0.0; \
                inherit: "default" 0.0; \
                visible: 1; \
             } \
          ) \
-         GENLIST_PART_PADDING_R("elm.flip.padding.eraser.left", "elm.flip.eraser") \
-         GENLIST_PART_ICON("elm.flip.eraser", \
-            GENLIST_DESCRIPTION_RTB("elm.flip.padding.icon.left",  \
-               "elm.padding.top", "elm.padding.bottom", \
-               fixed: 1 0; \
-               visible: 0; \
-               min: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
-               max: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
-            ) \
-            description { state: "show" 0.0; \
-               inherit: "default" 0.0; \
-               visible: 1; \
-            } \
-         ) \
          GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
          GENLIST_PART_ICON( "elm.flip.icon", \
             GENLIST_DESCRIPTION_RTB("elm.flip.padding.right", \
                visible: 0; \
                aspect: 1 1; \
                align: 1 0.5; \
-               max: 154 74; \
+               max: 158 74; \
             ) \
             description { state: "flipped" 0.0; \
                inherit: "default" 0.0; \
       }
 
 #define GENLIST_PROGRAM_SOUND( SRC ) \
+      program { \
+         name: "sound_disable"SRC; \
+         signal: "elm,state,slide,active"; \
+         source: "elm"; \
+         action: STATE_SET "disabled" 0.0; \
+         target: "base"; \
+      } \
+      program { \
+         name: "sound_enable"SRC; \
+         signal: "elm,state,slide,passive"; \
+         source: "elm"; \
+         action: STATE_SET "default" 0.0; \
+         target: "base"; \
+      } \
       program { name: "play_sound"SRC; \
          signal: "mouse,clicked,1"; \
          source: SRC; \
             source:  "elm"; \
             action:  STATE_SET "default" 0.0; \
             target: "elm.flip.bg"; \
-         } \
-         program { \
-            signal: "elm,state,eraser,show"; \
-            action: STATE_SET "show" 0.0; \
-            target: "elm.flip.eraser"; \
-         } \
-         program { \
-            signal: "elm,state,eraser,hide"; \
-            action: STATE_SET "default" 0.0; \
-            target: "elm.flip.eraser"; \
          }
 
 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
          ) \
          GENLIST_PART_RECT("arrow_clip", \
             GENLIST_DESCRIPTION_ENVELOP("arrow", \
-               color: 250 250 250 255; \
+               color: GENLIST_EXPANDABLE_ARROW_CLIP_COLOR; \
             ) \
             description { state: "disabled" 0.0; \
-               color: 250 250 250 76; \
+               color: GENLIST_EXPANDABLE_ARROW_DIM_COLOR; \
             } \
             description { state: "expand_opened_press" 0.0; \
-               color: 250 250 250 255; \
+               color: GENLIST_EXPANDABLE_ARROW_PRESS_COLOR; \
             } \
             description { state: "default_press" 0.0; \
-               color: 250 250 250 255; \
+               color: GENLIST_EXPANDABLE_ARROW_PRESS_COLOR; \
             } \
          ) \
          GENLIST_PART_IMAGE("arrow", \
             action: PLAY_SAMPLE "touch_sound" 1.0; \
          }
 #endif
+
+#define GENLIST_POPUP_STYLE(NAME) \
+   group { GENLIST_NAME(NAME"/popup/default") \
+      inherit: "elm/genlist/item/"NAME"/default"; \
+      parts { \
+         GENLIST_PART_RECT("bg",  \
+            description { state: "default" 0.0; \
+               color: GENLIST_LIST_BG_POPUP_COLOR; \
+            } \
+         ) \
+      } \
+   }