summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/xkbswitch.edc
diff options
context:
space:
mode:
Diffstat (limited to 'data/elementary/themes/edc/xkbswitch.edc')
-rw-r--r--data/elementary/themes/edc/xkbswitch.edc174
1 files changed, 174 insertions, 0 deletions
diff --git a/data/elementary/themes/edc/xkbswitch.edc b/data/elementary/themes/edc/xkbswitch.edc
new file mode 100644
index 0000000..1bbfbc9
--- /dev/null
+++ b/data/elementary/themes/edc/xkbswitch.edc
@@ -0,0 +1,174 @@
1group { name: "e/modules/xkbswitch/main";
2 alias: "e/gadget/xkbswitch/main";
3 alias: "e/gadget/xkbswitch/main_vert";
4 images.image: "shadow_square_tiny.png" COMP;
5 images.image: "bevel_out.png" COMP;
6 images.image: "shine.png" COMP;
7 max: 128 128;
8 parts {
9 part { name: "shadow";
10 description { state: "default" 0.0;
11 rel1.to: "e.swallow.flag";
12 rel1.offset: -3 -2;
13 rel2.to: "e.swallow.flag";
14 rel2.offset: 2 4;
15 image.normal: "shadow_square_tiny.png";
16 image.border: 6 6 6 6;
17 fill.smooth: 0;
18 }
19 }
20 part { name: "e.swallow.flag"; type: SWALLOW; mouse_events: 0;
21 description { state: "default" 0.0;
22 rel1.offset: 3 3;
23 rel2.offset: -4 -4;
24 }
25 }
26 part { name: "e.text.label"; type: TEXT; mouse_events: 0;
27 effect: GLOW;
28 description { state: "default" 0.0;
29 rel1.to: "e.swallow.flag";
30 rel1.relative: 0.0 0.5;
31 rel2.to: "e.swallow.flag";
32 rel2.relative: 1.0 0.5;
33 color: FN_COL_OUTLINE_TRANSPARENT;
34 text { font: FN; size: 9;
35 min: 0 1;
36 text_class: "module_small";
37 }
38 fixed: 0 1;
39 }
40 description { state: "visible" 0.0;
41 inherit: "default" 0.0;
42 color: FN_COL_OUTLINE_DEFAULT;
43 }
44 }
45 part { name: "bevel"; mouse_events: 0;
46 description { state: "default" 0.0;
47 rel1.to: "e.swallow.flag";
48 rel2.to: "e.swallow.flag";
49 image.normal: "bevel_out.png";
50 image.border: 1 1 1 1;
51 image.middle: 0;
52 fill.smooth: 0;
53 }
54 }
55 part { name: "clip"; type: RECT;
56 description { state: "default" 0.0;
57 rel1.to_x: "e.swallow.flag";
58 rel2.to_x: "e.swallow.flag";
59 }
60 }
61 part { name: "shine"; mouse_events: 0;
62 clip_to: "clip";
63 description { state: "default" 0.0;
64 image.normal: "shine.png";
65 rel1.offset: 0 -2;
66 rel1.to: "e.swallow.flag";
67 rel2.relative: 1.0 0.0;
68 rel2.offset: -1 2;
69 rel2.to: "e.swallow.flag";
70 FIXED_SIZE(69, 5)
71 }
72 }
73 part { name: "event"; type: RECT;
74 description { state: "default" 0.0;
75 color: 0 0 0 0;
76 }
77 }
78 }
79 programs {
80 program {
81 signal: "mouse,in"; source: "event";
82 action: STATE_SET "visible" 0.0;
83 transition: DECELERATE 0.25;
84 target: "e.text.label";
85 }
86 program {
87 signal: "mouse,out"; source: "event";
88 action: STATE_SET "default" 0.0;
89 transition: DECELERATE 1.0;
90 target: "e.text.label";
91 }
92 }
93}
94
95group { name: "e/modules/xkbswitch/noflag";
96 alias: "e/gadget/xkbswitch/noflag";
97 alias: "e/gadget/xkbswitch/noflag_vert";
98 images.image: "shadow_square_tiny.png" COMP;
99 images.image: "bevel_out.png" COMP;
100 images.image: "shine.png" COMP;
101 max: 128 128;
102 parts {
103 part { name: "shadow";
104 description { state: "default" 0.0;
105 rel1.to: "base";
106 rel1.offset: -3 -2;
107 rel2.to: "base";
108 rel2.offset: 2 4;
109 image.normal: "shadow_square_tiny.png";
110 image.border: 6 6 6 6;
111 fill.smooth: 0;
112 }
113 }
114 part { name: "base"; type: RECT; mouse_events: 0;
115 description { state: "default" 0.0;
116 rel1.offset: 3 3;
117 rel2.offset: -4 -4;
118 aspect: 1.8 1.8; aspect_preference: BOTH;
119 color: 51 153 255 255;
120 }
121 }
122 part { name: "e.text.label"; type: TEXT; mouse_events: 0;
123 effect: SHADOW BOTTOM;
124 description { state: "default" 0.0;
125 rel1.to: "base";
126 rel1.relative: 0.0 0.5;
127 rel2.to: "base";
128 rel2.relative: 1.0 0.5;
129 color: FN_COL_DEFAULT;
130 text { font: FNBD; size: 9;
131 min: 0 1;
132 text_class: "module_small";
133 }
134 fixed: 0 1;
135 }
136 description { state: "visible" 0.0;
137 inherit: "default" 0.0;
138 }
139 }
140 part { name: "bevel"; mouse_events: 0;
141 description { state: "default" 0.0;
142 rel1.to: "base";
143 rel2.to: "base";
144 image.normal: "bevel_out.png";
145 image.border: 1 1 1 1;
146 image.middle: 0;
147 fill.smooth: 0;
148 }
149 }
150 part { name: "clip"; type: RECT;
151 description { state: "default" 0.0;
152 rel1.to_x: "base";
153 rel2.to_x: "base";
154 }
155 }
156 part { name: "shine"; mouse_events: 0;
157 clip_to: "clip";
158 description { state: "default" 0.0;
159 image.normal: "shine.png";
160 rel1.offset: 0 -2;
161 rel1.to: "base";
162 rel2.relative: 1.0 0.0;
163 rel2.offset: -1 2;
164 rel2.to: "base";
165 FIXED_SIZE(69, 5)
166 }
167 }
168 part { name: "event"; type: RECT;
169 description { state: "default" 0.0;
170 color: 0 0 0 0;
171 }
172 }
173 }
174}