summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/start.edc
blob: f14e6c109f6fa99b2cdf452b571d6fe1e4cde564 (plain) (blame)
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
group { name: "e/modules/start/main";
   alias: "e/gadget/start/main";
   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: "i-arrow-u";
            color: 160 160 160 255;
            rel1.relative: (4/40) (4/40);
            rel2.relative: (36/40) (36/40);
         }
         description { state: "down" 0.0;
            inherit: "default" 0.0;
            image.normal: "i-arrow-d";
         }
         description { state: "left" 0.0;
            inherit: "default" 0.0;
            image.normal: "i-arrow-l";
         }
         description { state: "right" 0.0;
            inherit: "default" 0.0;
            image.normal: "i-arrow-r";
         }
      }
      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
   }
}