summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/xkbswitch.edc
blob: 19edf75ffd2f201767be09f060bc4b1f28f71fc6 (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
group { name: "e/modules/xkbswitch/main";
   alias: "e/gadget/xkbswitch/main";
   alias: "e/gadget/xkbswitch/main_vert";
   alias: "e/modules/xkbswitch/main_vert";
   max: 128 128;
   parts {
      part { name: "e.swallow.flag"; type: SWALLOW; mouse_events: 0;
         description { state: "default" 0.0;
            rel1.offset: 2 2;
            rel2.offset: -3 -3;
         }
      }
      part { name: "over"; type: RECT; mouse_events: 0;
         description { state: "default" 0.0;
            rel1.to: "e.swallow.flag";
            rel2.to: "e.swallow.flag";
            color: 0 0 0 0;;
            visible: 0;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            color: 0 0 0 128;
         }
      }
      part { name: "e.text.label"; type: TEXT; mouse_events: 0;
         description { state: "default" 0.0;
            color: 255 255 255 0;
            visible: 0;
            rel1.to: "e.swallow.flag";
            rel1.relative: 0.0 0.5;
            rel2.to: "e.swallow.flag";
            rel2.relative: 1.0 0.5;
            text { font: FN; size: 10;
               min: 0 1;
               text_class: "module_small";
            }
            fixed: 0 1;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 255;
            visible: 1;
         }
      }
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0;
         }
      }
   }
   programs {
      program {
         signal: "mouse,in"; source: "event";
         action: STATE_SET "visible" 0.0;
         transition: DECELERATE 0.25;
         target: "e.text.label";
         target: "over";
      }
      program {
         signal: "mouse,out"; source: "event";
         action: STATE_SET "default" 0.0;
         transition: DECELERATE 1.0;
         target: "e.text.label";
         target: "over";
      }
   }
}

group { name: "e/modules/xkbswitch/noflag";
   alias: "e/gadget/xkbswitch/noflag";
   alias: "e/gadget/xkbswitch/noflag_vert";
   max: 128 128;
   parts {
      part { name: "base"; type: RECT; mouse_events: 0;
         description { state: "default" 0.0;
            rel1.offset: 2 2;
            rel2.offset: -3 -3;
            aspect: 1.8 1.8; aspect_preference: BOTH;
            color: 32 32 32 255;
         }
      }
      part { name: "e.text.label"; type: TEXT; mouse_events: 0;
         description { state: "default" 0.0;
            color: 160 160 160 255;;
            rel1.to: "base";
            rel1.relative: 0.0 0.5;
            rel2.to: "base";
            rel2.relative: 1.0 0.5;
            text { font: FNBD; size: 10;
               min: 0 1;
               text_class: "module_small";
            }
            fixed: 0 1;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 255;
         }
      }
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0;
         }
      }
   }
}