forked from enlightenment/efl
TH - main win menu fixes
This commit is contained in:
parent
eef252119e
commit
244c874021
|
@ -28,12 +28,6 @@ group { name: "elm/border/base/default";
|
||||||
new m_show = get_int(show_menu);
|
new m_show = get_int(show_menu);
|
||||||
new s_hide = get_int(hide_shadow);
|
new s_hide = get_int(hide_shadow);
|
||||||
|
|
||||||
if ((m_show) && (s_hide)) {
|
|
||||||
set_state(PART:"elm.swallow.menu", "visible", 0.0);
|
|
||||||
} else {
|
|
||||||
set_state(PART:"elm.swallow.menu", "default", 0.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (s_hide) {
|
if (s_hide) {
|
||||||
set_state(PART:"shadow_clip", "hidden", 0.0);
|
set_state(PART:"shadow_clip", "hidden", 0.0);
|
||||||
set_state(PART:"shadow_base", "hidden", 0.0);
|
set_state(PART:"shadow_base", "hidden", 0.0);
|
||||||
|
@ -41,6 +35,11 @@ group { name: "elm/border/base/default";
|
||||||
set_state(PART:"shadow_clip", "default", 0.0);
|
set_state(PART:"shadow_clip", "default", 0.0);
|
||||||
set_state(PART:"shadow_base", "default", 0.0);
|
set_state(PART:"shadow_base", "default", 0.0);
|
||||||
}
|
}
|
||||||
|
if ((m_show)/* && (s_hide)*/) {
|
||||||
|
set_state(PART:"elm.swallow.menu", "visible", 0.0);
|
||||||
|
} else {
|
||||||
|
set_state(PART:"elm.swallow.menu", "default", 0.0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public border_mode;
|
public border_mode;
|
||||||
|
@ -150,7 +149,8 @@ group { name: "elm/border/base/default";
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
rel1.relative: 0.0 1.0;
|
rel1.relative: 0.0 1.0;
|
||||||
rel1.offset: 0 -1;
|
rel1.offset: 0 -1;
|
||||||
min: 0 40;
|
// debug...
|
||||||
|
//min: 0 40;
|
||||||
}
|
}
|
||||||
desc { "visible"; inherit: "default";
|
desc { "visible"; inherit: "default";
|
||||||
// GGGG
|
// GGGG
|
||||||
|
|
|
@ -2,19 +2,22 @@ group { name: "elm/win/base/default";
|
||||||
data.item: "version" "119";
|
data.item: "version" "119";
|
||||||
parts {
|
parts {
|
||||||
rect { "client_clip"; nomouse; }
|
rect { "client_clip"; nomouse; }
|
||||||
|
// nothing seems to use this swallow...
|
||||||
swallow { "elm.swallow.menu";
|
swallow { "elm.swallow.menu";
|
||||||
clip_to: "client_clip";
|
clip_to: "client_clip";
|
||||||
desc { "default";
|
desc { "default";
|
||||||
rel2.relative: 1 0;
|
rel2.relative: 1 0;
|
||||||
link.base: "elm,action,hide" "elm";
|
|
||||||
align: 0.5 0.0;
|
align: 0.5 0.0;
|
||||||
hid;
|
hid;
|
||||||
|
link.base: "elm,action,hide" "elm";
|
||||||
|
min: 0 80;
|
||||||
}
|
}
|
||||||
desc { "visible";
|
desc { "visible";
|
||||||
inherit: "default";
|
inherit: "default";
|
||||||
link.base: "elm,action,show_menu" "elm";
|
align: 0.5 0.0;
|
||||||
fixed: 0 1;
|
fixed: 0 1;
|
||||||
vis;
|
vis;
|
||||||
|
link.base: "elm,action,show_menu" "elm";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
swallow { "elm.swallow.contents";
|
swallow { "elm.swallow.contents";
|
||||||
|
|
Loading…
Reference in New Issue