summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/start.edc
blob: db0cf7b3985cdfc463a05b453db3da3dd51ca33e (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
group { name: "e/modules/start/main";
   images.image: "big_arrow_down.png" COMP;
   images.image: "big_arrow_up.png" COMP;
   images.image: "big_arrow_left.png" COMP;
   images.image: "big_arrow_right.png" COMP;
   max: 128 128;
   parts {
      part { name: "arrow_base"; type: RECT;
         description { state: "default" 0.0;
            rel1.offset: 0 1;
            rel2.offset: -1 0;
            color: 255 255 255 255;
         }
         description { state: "active" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 64;
         }
      }
      part { name: "arrow";
         clip_to: "arrow_base";
         description { state: "default" 0.0;
            image.normal: "big_arrow_up.png";
            aspect: (17/14) (17/14);
            max: 17 14;
            color: 160 160 160 255;
         }
         description { state: "down" 0.0;
            inherit: "default" 0.0;
            image.normal: "big_arrow_down.png";
            aspect: (17/14) (17/14);
            max: 17 14;
         }
         description { state: "left" 0.0;
            inherit: "default" 0.0;
            image.normal: "big_arrow_left.png";
            aspect: (14/17) (14/17);
            max: 14 17;
         }
         description { state: "right" 0.0;
            inherit: "default" 0.0;
            image.normal: "big_arrow_right.png";
            aspect: (14/17) (14/17);
            max: 14 17;
         }
      }
      part { name: "events"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0;
         }
      }
   }
   programs {
      program {
         signal: "e,state,focused";
         source: "e";
         action: STATE_SET "active" 0.0;
         target: "arrow_base";
      }
      program {
         signal: "e,state,unfocused";
         source: "e";
         action: STATE_SET "default" 0.0;
         target: "arrow_base";
      }
#define ORIENT_SATE(_ORIENT, _STATE) \
      program { \
         signal: "e,state,orientation,"_ORIENT; source: "e"; \
         action: STATE_SET _STATE 0.0; \
         target: "arrow"; \
      }
      ORIENT_SATE("top", "down")
      ORIENT_SATE("top_left", "down")
      ORIENT_SATE("top_right", "down")
      ORIENT_SATE("bottom", "default")
      ORIENT_SATE("bottom_left", "default")
      ORIENT_SATE("bottom_right", "default")
      ORIENT_SATE("left", "right")
      ORIENT_SATE("left_top", "right")
      ORIENT_SATE("left_bottom", "right")
      ORIENT_SATE("right", "left")
      ORIENT_SATE("right_top", "left")
      ORIENT_SATE("right_bottom", "left")
#undef ORIENT_SATE
   }
}