add styles for inwin for mininmal and minimal_vertical

SVN revision: 38821
This commit is contained in:
Carsten Haitzler 2009-01-28 00:28:20 +00:00
parent 478023f683
commit 2706ed3038
3 changed files with 166 additions and 2 deletions

View File

@ -4968,6 +4968,168 @@ collections {
}
}
group { name: "elm/win/inwin/minimal";
images {
image: "shad_circ.png" COMP;
image: "bt_dis_base.png" COMP;
image: "bt_dis_hilight.png" COMP;
}
parts {
part { name: "base";
type: RECT;
mouse_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
inherit: "default" 1.0;
color: 0 0 0 64;
}
}
part { name: "shad";
mouse_events: 0;
description { state: "default" 0.0;
image.normal: "shad_circ.png";
rel1.to: "elm.swallow.content";
rel1.offset: -64 -64;
rel2.to: "elm.swallow.content";
rel2.offset: 63 63;
fill.smooth: 0;
}
}
part { name: "pop";
mouse_events: 1;
description { state: "default" 0.0;
rel1.to: "elm.swallow.content";
rel1.offset: -5 -5;
rel2.to: "elm.swallow.content";
rel2.offset: 4 4;
image {
normal: "bt_dis_base.png";
border: 4 4 4 4;
}
}
}
part { name: "popover";
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "pop";
rel2.to: "pop";
rel2.relative: 1.0 0.5;
image {
normal: "bt_dis_hilight.png";
border: 4 4 4 0;
}
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 1;
rel1.relative: 0.5 0.5;
rel2.relative: 0.5 0.5;
}
}
}
programs {
program { name: "show";
signal: "elm,action,show";
source: "elm";
action: STATE_SET "visible" 0.0;
// transition: DECELERATE 0.5;
target: "base";
}
program { name: "hide";
signal: "elm,action,hide";
source: "elm";
action: STATE_SET "default" 0.0;
// transition: DECELERATE 0.5;
target: "base";
}
}
}
group { name: "elm/win/inwin/minimal_vertical";
images {
image: "shad_circ.png" COMP;
image: "bt_dis_base.png" COMP;
image: "bt_dis_hilight.png" COMP;
}
parts {
part { name: "base";
type: RECT;
mouse_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
inherit: "default" 1.0;
color: 0 0 0 64;
}
}
part { name: "shad";
mouse_events: 0;
description { state: "default" 0.0;
image.normal: "shad_circ.png";
rel1.to: "elm.swallow.content";
rel1.offset: -64 -64;
rel2.to: "elm.swallow.content";
rel2.offset: 63 63;
fill.smooth: 0;
}
}
part { name: "pop";
mouse_events: 1;
description { state: "default" 0.0;
rel1.to: "elm.swallow.content";
rel1.offset: -5 -5;
rel2.to: "elm.swallow.content";
rel2.offset: 4 4;
image {
normal: "bt_dis_base.png";
border: 4 4 4 4;
}
}
}
part { name: "popover";
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "pop";
rel2.to: "pop";
rel2.relative: 1.0 0.5;
image {
normal: "bt_dis_hilight.png";
border: 4 4 4 0;
}
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 1;
rel1.relative: 0.1 0.5;
rel2.relative: 0.9 0.5;
}
}
}
programs {
program { name: "show";
signal: "elm,action,show";
source: "elm";
action: STATE_SET "visible" 0.0;
// transition: DECELERATE 0.5;
target: "base";
}
program { name: "hide";
signal: "elm,action,hide";
source: "elm";
action: STATE_SET "default" 0.0;
// transition: DECELERATE 0.5;
target: "base";
}
}
}
///////////////////////////////////////////////////////////////////////////////
group { name: "elm/list/item/default";
data.item: "stacking" "above";

View File

@ -158,6 +158,8 @@ extern "C" {
EAPI void elm_win_inwin_style_set(Evas_Object *obj, const char *style);
/* available styles:
* default
* minimal
* minimal_vertical
*/
/* X specific calls - won't work on non-x engines (return 0) */

View File

@ -496,8 +496,8 @@ static void
_theme_hook(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (wd->style) _elm_theme_set(wd->frm, "frame", "base", wd->style);
else _elm_theme_set(wd->frm, "frame", "base", "default");
if (wd->style) _elm_theme_set(wd->frm, "win", "inwin", wd->style);
else _elm_theme_set(wd->frm, "win", "inwin", "default");
if (wd->content)
edje_object_part_swallow(wd->frm, "elm.swallow.content", wd->content);
_sizing_eval(obj);