summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-11-22 17:09:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-23 13:04:13 +0900
commit8c505e31917f7607c0b6607bb8c73fb39f1bce9f (patch)
tree6ce6dac9815eee30ca0578fa81900c9a7187113d /data
parentfc4c07e735efdfaaba07127a9fa3bee51b4ac15b (diff)
win: Remove menu from EDC group (fixes compatibility)
This fixes compatibility with legacy themes (ie. every single theme in existence beyond the default one, for now), by checking where to swallow the menu widget. If a legacy theme is used, the legacy swallow should be used, and it will all look correct. Moving forward I hope to get rid of the internal edje object entirely, except for compatibility reasons.
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/win.edc52
1 files changed, 7 insertions, 45 deletions
diff --git a/data/elementary/themes/edc/elm/win.edc b/data/elementary/themes/edc/elm/win.edc
index 292ff24..44ae634 100644
--- a/data/elementary/themes/edc/elm/win.edc
+++ b/data/elementary/themes/edc/elm/win.edc
@@ -1,66 +1,28 @@
1group { name: "elm/win/base/default"; 1group { name: "elm/win/base/default";
2 parts { 2 parts {
3 part { name: "menu_bg"; type: RECT; 3 rect { "client_clip"; nomouse;
4 description { state: "default" 0.0; 4 desc { "default";
5 color: 64 64 64 255;
6 align: 0.5 0;
7 rel2.to: "elm.swallow.menu";
8 }
9 }
10 part { name: "elm.swallow.menu"; type: SWALLOW;
11 description { state: "default" 0.0;
12 rel2.relative: 1.0 0.0;
13 visible: 0;
14 align: 0.5 0;
15 fixed: 1 1;
16 }
17 description { state: "visible" 0.0;
18 inherit: "default" 0.0;
19 visible: 1;
20 fixed: 0 1;
21 }
22 }
23 part { name: "client_clip"; type: RECT; mouse_events: 0;
24 description { state: "default" 0.0;
25 rel1.to_y: "elm.swallow.contents"; 5 rel1.to_y: "elm.swallow.contents";
26 rel2.to_y: "elm.swallow.contents"; 6 rel2.to_y: "elm.swallow.contents";
27 } 7 }
28 } 8 }
29 part { name: "elm.swallow.contents"; type: SWALLOW; 9 swallow { "elm.swallow.contents";
30 clip_to: "client_clip"; 10 clip_to: "client_clip";
31 description { state: "default" 0.0;
32 rel1 {
33 to_y: "elm.swallow.menu";
34 relative: 0.0 1.0;
35 }
36 }
37 } 11 }
38 part { name: "blocker"; type: RECT; 12 rect { "blocker";
39 description { state: "default" 0.0; 13 desc { "default";
40 rel1.relative : 0.0 0.0; 14 rel1.relative : 0.0 0.0;
41 rel2.relative : 1.0 1.0; 15 rel2.relative : 1.0 1.0;
42 color: 64 64 64 150; 16 color: 64 64 64 150;
43 visible: 0; 17 visible: 0;
44 } 18 }
45 description { state: "visible" 0.0; 19 desc { "visible";
46 inherit: "default" 0.0; 20 inherit: "default";
47 visible: 1; 21 visible: 1;
48 } 22 }
49 } 23 }
50 } 24 }
51 programs { 25 programs {
52 program { name: "show_menu";
53 signal: "elm,action,show_menu";
54 source: "elm";
55 action: STATE_SET "visible" 0.0;
56 target: "elm.swallow.menu";
57 }
58 program { name: "hide_menu";
59 signal: "elm,action,hide";
60 source: "elm";
61 action: STATE_SET "default" 0.0;
62 target: "elm.swallow.menu";
63 }
64 program { name: "hide_blocker"; 26 program { name: "hide_blocker";
65 signal: "elm,action,hide_blocker"; 27 signal: "elm,action,hide_blocker";
66 source: "elm"; 28 source: "elm";