summaryrefslogtreecommitdiff
path: root/main/layout/genlist/genlist_group_index.edc
blob: 28910496c190bcebd37c3e874316b217ab576555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *	  http://www.tizenopensource.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#define GENLIST_PART_FONT_INDEX_LIST_COLOR_INC 240 240 240 255
#define GENLIST_DIALOGUE_GROUP_BG_COLOR_INC 15 15 15 255

#define GENLIST_PART_INDEX_LIST_BASE_EVENT_INC \
     part { name: "base_event";\
        type: RECT;\
        repeat_events: 0;\
        description { state: "default" 0.0;\
           color: 0 0 0 0;\
        }\
     }

#define GENLIST_PART_INDEX_LIST_BASE_IMAGE_INC \
		part { name: "base_image";\
		   repeat_events: 1;\
		   description { state: "default" 0.0;\
			  rel1.to: "rect";\
			  rel2.to: "rect";\
		   }\
		}

   group { name: "elm/genlist/item/ivug/grouptitle/default";
      alias: "elm/genlist/item_odd/ivug/grouptitle/default";
      alias: "elm/genlist/item_compress/ivug/grouptitle/default";
      alias: "elm/genlist/item_compress_odd/ivug/grouptitle/default";

      data.item: "stacking" "above";
      data.item: "selectraise" "on";
      data.item: "texts" "elm.text";
      data.item: "treesize" "GENLIST_TREESIZE_32_INC";

      images {
         //image: "00_index_list_bg.png" COMP;
      }
      parts {
         GENLIST_PART_INDEX_LIST_BASE_EVENT_INC
         GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_16_INC )
         GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_16_INC )
         part { name: "rect";
            type: RECT;
            repeat_events: 1;
            scale: 1;
            description { state: "default" 0.0;
               min: 0 GENLIST_HEIGHT_49_INC;
               color: GENLIST_DIALOGUE_GROUP_BG_COLOR_INC;
            }
            description { state: "alpha_off" 0.0;
               min: 0 GENLIST_SIZE_48_INC;
               color: GENLIST_DIALOGUE_GROUP_BG_COLOR_INC;
            }
         }
         GENLIST_PART_INDEX_LIST_BASE_IMAGE_INC

         part { name: "elm.text";
            type: TEXT;
            scale: 1;
            description { state: "default" 0.0;
               align: 0.0 0.5;
               rel1 {
                  relative: 1.0 0.0;
                  to_x: "elm.padding.left";
               }
               rel2 {
                  relative: 0.0 1.0;
                  offset: 0 0;
                  to_x: "elm.padding.right";
               }
               color: GENLIST_PART_FONT_INDEX_LIST_COLOR_INC;
               text {
                  font: "SLP:style=Medium";
                  size: GENLIST_FONT_32_INC;
                  min: 1 1;
                  align: 0.0 0.5;
               }
            }
         }
      }
       program {
          name:    "enable_alpha";
          signal:  "elm,state,alpha,enable";
          source:  "elm";
          action:  STATE_SET "default" 0.0;
          target:  "rect";
       }
       program {
          name:    "disable_alpha";
          signal:  "elm,state,alpha,disable";
          source:  "elm";
          action:  STATE_SET "alpha_off" 0.0;
          target:  "rect";
       }
      program {
          name: "selected";
         source: "rect";
         signal: "mouse,clicked,1";
         action:  SIGNAL_EMIT "elm,title_action,item,click" "elm";
      }
   }