summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/xkbswitch.edc
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-01 16:44:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-01 16:44:01 +0900
commitca9326767052e2cb61200d71a38b66cc84a6b18d (patch)
tree0102e5fb0e3be72b673c58052f23a1406788751e /data/elementary/themes/edc/xkbswitch.edc
parent9111811b83cc1b3bb0e73f837497882d2e06a0ce (diff)
Revert "theme: rename "default" theme to "dark""
This reverts commit d764e0b2790b322778e6db80932c168ae0d43b96. The whole idea of renaming the default theme is an "api break" even if config is changed. and symlinks don't work on windows as a solution. (well on ntfs only as only as administrator, so they don't exist). modifying config for switch from default to dark also will break the case where someone put ~/.elementary/themes/default.edj there and it just is different to the system one and how their theme changes on them as it switches to dark. basically we can't rename a theme like this mid-flight in efl. default is default and has to stay that name. it can change the look, but not the name. i think the apparent reasoning behind this is not a good one. the work on flat is temporary. i don't think we will ever maintain multiple "default themes" as its just far too much work. we can maintain color SCHEMES which are just a list of colorclasses and colors for them - that's separate to a theme and would override. right now these things don't exist. we are not going to create a dark.edj and a light.edj just to store differing default colorclass values. we should be doing the above with colorclass "color palette/scheme/whatever" files that override those named colorclasses globally on init. so reverting because this is an api break and we shouldn't break api unless there is really absolutely no other choice. here the choice is to just temporarily work in a branch and modify default and then merge the branch when done.
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 0000000000..1bbfbc9641
--- /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}