forked from enlightenment/enlightenment
parent
13c6a42821
commit
9e8ceee1bd
|
@ -26579,7 +26579,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/*** MOD: EVERYTHING ***/
|
||||
/* #define DROP_SHADOW 1 */
|
||||
|
||||
|
@ -26862,7 +26862,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
description {
|
||||
state: "faded" 0.0;
|
||||
color: 255 255 255 200;
|
||||
color: 255 255 255 120;
|
||||
}
|
||||
}
|
||||
part {
|
||||
|
@ -26871,6 +26871,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
clip_to: "icon_clip";
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 64 64;
|
||||
max: 64 64;
|
||||
aspect: 1.0 1.0;
|
||||
align: 0.0 0.5;
|
||||
|
@ -26885,6 +26886,28 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
}
|
||||
}
|
||||
part {
|
||||
name: "e.swallow.thumb";
|
||||
type: SWALLOW;
|
||||
clip_to: "icon_clip";
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 86 64;
|
||||
max: 86 64;
|
||||
aspect: 1.0 1.0;
|
||||
align: 0.0 0.5;
|
||||
aspect_preference: VERTICAL;
|
||||
rel1 {
|
||||
relative: 0.0 0.0;
|
||||
offset: 15 15;
|
||||
}
|
||||
rel2 {
|
||||
relative: 0.0 0.0;
|
||||
offset: 100 79;
|
||||
}
|
||||
color: 255 255 255 0;
|
||||
}
|
||||
}
|
||||
part { name: "e.text.label";
|
||||
type: TEXT;
|
||||
clip_to: "inner_clip";
|
||||
|
@ -26894,7 +26917,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
description {
|
||||
state: "default" 0.0;
|
||||
rel1 {
|
||||
offset: 20 1;
|
||||
offset: 20 6;
|
||||
relative: 0.0 0.6;
|
||||
/* to_x: "e.swallow.icons"; */
|
||||
}
|
||||
|
@ -26964,9 +26987,24 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
transition: ACCELERATE 0.3;
|
||||
target: "icon_clip";
|
||||
}
|
||||
program { name: "thumb_show";
|
||||
signal: "e,action,thumb,show";
|
||||
source: "e";
|
||||
action: STATE_SET "faded" 0.0;
|
||||
/* transition: SINUSOIDAL 0.05; */
|
||||
target: "icon_clip";
|
||||
after: "thumb_show2";
|
||||
}
|
||||
program { name: "thumb_show2";
|
||||
action: STATE_SET "default" 0.0;
|
||||
transition: SINUSOIDAL 0.2;
|
||||
target: "icon_clip";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/*** EVERYTHING LIST POPUP ***/
|
||||
group { name: "e/modules/everything/list";
|
||||
images {
|
||||
image: "base_bg.png" COMP;
|
||||
|
@ -27537,6 +27575,8 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/*** EVERYTHING LIST VIEW ***/
|
||||
group { name: "e/modules/everything/item";
|
||||
images {
|
||||
image: "icon_right_arrow.png" COMP;
|
||||
|
@ -27759,6 +27799,8 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/*** EVERYTHING PREVIEW ***/
|
||||
group { name: "e/modules/everything/preview";
|
||||
parts {
|
||||
part { name: "bg";
|
||||
|
@ -27894,11 +27936,8 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/*** WALLPAPER MAIN DIALOG ***/
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/*** EVERYTHING THUMB VIEW ***/
|
||||
group { name: "e/modules/everything/thumbview/main/window";
|
||||
images {
|
||||
image: "vgrad_dark.png" COMP;
|
||||
|
@ -27937,14 +27976,9 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
rel2 {
|
||||
relative: 1.0 1.0;
|
||||
offset: -1 6;
|
||||
/* to_y: "bot1"; */
|
||||
}
|
||||
fill {
|
||||
smooth: 0;
|
||||
/* size {
|
||||
* relative: 0.0 1.0;
|
||||
* offset: 64 0;
|
||||
* } */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27969,7 +28003,6 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
rel2 {
|
||||
relative: 1.0 1.0;
|
||||
offset: -3 -3;
|
||||
/* to_y: "bot1"; */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28080,7 +28113,6 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
part { name: "bg";
|
||||
mouse_events: 0;
|
||||
description { state: "default" 0.0;
|
||||
/* visible: 0; */
|
||||
rel1 {
|
||||
to: "base";
|
||||
offset: -1 -3;
|
||||
|
@ -28096,7 +28128,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
color: 255 255 255 32;
|
||||
}
|
||||
description { state: "visible" 0.0;
|
||||
description { state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 128;
|
||||
}
|
||||
|
@ -28122,8 +28154,22 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part { name: "e.swallow.content";
|
||||
clip_to: "base";
|
||||
part { name: "clip";
|
||||
mouse_events: 0;
|
||||
type: RECT;
|
||||
/* clip_to: "base"; */
|
||||
description { state: "default" 0.0;
|
||||
rel1.to: "base";
|
||||
rel2.to: "base";
|
||||
color: 235 235 235 255;
|
||||
}
|
||||
description { state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part { name: "e.swallow.icon";
|
||||
clip_to: "clip";
|
||||
type: SWALLOW;
|
||||
description { state: "default" 0.0;
|
||||
rel1 {
|
||||
|
@ -28138,8 +28184,8 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
}
|
||||
}
|
||||
part { name: "e.swallow.icon";
|
||||
clip_to: "base";
|
||||
part { name: "e.swallow.thumb";
|
||||
clip_to: "clip";
|
||||
type: SWALLOW;
|
||||
description { state: "default" 0.0;
|
||||
rel1 {
|
||||
|
@ -28177,26 +28223,15 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
part { name: "events";
|
||||
type: RECT;
|
||||
description { state: "default" 0.0;
|
||||
color: 0 0 0 0;
|
||||
visible: 0;
|
||||
}
|
||||
description { state: "visible" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { name: "sel";
|
||||
signal: "e,state,selected";
|
||||
source: "e";
|
||||
action: STATE_SET "visible" 0.0;
|
||||
action: STATE_SET "selected" 0.0;
|
||||
transition: DECELERATE 0.1;
|
||||
target: "bg";
|
||||
target: "clip";
|
||||
}
|
||||
program { name: "unsel";
|
||||
signal: "e,state,unselected";
|
||||
|
@ -28204,6 +28239,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
|||
action: STATE_SET "default" 0.0;
|
||||
transition: SINUSOIDAL 0.2;
|
||||
target: "bg";
|
||||
target: "clip";
|
||||
}
|
||||
program { name: "thumb_gen";
|
||||
signal: "e,action,thumb,gen";
|
||||
|
|
|
@ -7,6 +7,8 @@ struct _Tab
|
|||
{
|
||||
Evry_Plugin *plugin;
|
||||
Evas_Object *o_tab;
|
||||
|
||||
int cw, mw;
|
||||
};
|
||||
|
||||
|
||||
|
@ -58,7 +60,7 @@ _tabs_update(Tab_View *v)
|
|||
Evry_Plugin *p;
|
||||
const Evry_State *s = v->state;
|
||||
Tab *tab;
|
||||
Evas_Coord mw, cw, w;
|
||||
Evas_Coord w;
|
||||
Evas_Object *o;
|
||||
|
||||
evas_object_geometry_get(v->o_tabs, NULL, NULL, &w, NULL);
|
||||
|
@ -78,7 +80,7 @@ _tabs_update(Tab_View *v)
|
|||
EINA_LIST_FOREACH(v->tabs, ll, tab)
|
||||
if (tab->plugin == p) break;
|
||||
|
||||
if (!tab && (strlen(p->name) > 0))
|
||||
if (!tab)
|
||||
{
|
||||
tab = E_NEW(Tab, 1);
|
||||
tab->plugin = p;
|
||||
|
@ -90,6 +92,9 @@ _tabs_update(Tab_View *v)
|
|||
|
||||
tab->o_tab = o;
|
||||
|
||||
edje_object_size_min_calc(o, &tab->cw, NULL);
|
||||
edje_object_size_min_get(o, &tab->mw, NULL);
|
||||
|
||||
v->tabs = eina_list_append(v->tabs, tab);
|
||||
}
|
||||
|
||||
|
@ -99,11 +104,8 @@ _tabs_update(Tab_View *v)
|
|||
evas_object_show(o);
|
||||
e_box_pack_end(v->o_tabs, o);
|
||||
|
||||
edje_object_size_min_calc(o, &cw, NULL);
|
||||
edje_object_size_min_get(o, &mw, NULL);
|
||||
|
||||
e_box_pack_options_set(o, 1, 1, 1, 0, 0.0, 0.5,
|
||||
(mw < cw ? cw : mw), 10,
|
||||
(tab->mw < tab->cw ? tab->cw : tab->mw), 10,
|
||||
(w ? w/3 : 150), 9999);
|
||||
if (s->plugin == p)
|
||||
edje_object_signal_emit(o, "e,state,selected", "e");
|
||||
|
@ -298,6 +300,7 @@ evry_tab_view_free(Tab_View *v)
|
|||
|
||||
EINA_LIST_FREE(v->tabs, tab)
|
||||
{
|
||||
e_box_unpack(tab->o_tab);
|
||||
evas_object_del(tab->o_tab);
|
||||
E_FREE(tab);
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ _thumb_gen(void *data, Evas_Object *obj, void *event_info)
|
|||
|
||||
e_icon_size_get(it->thumb, &w, &h);
|
||||
edje_extern_object_aspect_set(it->thumb, EDJE_ASPECT_CONTROL_BOTH, w, h);
|
||||
edje_object_part_swallow(it->frame, "e.swallow.icon", it->thumb);
|
||||
edje_object_part_swallow(it->frame, "e.swallow.thumb", it->thumb);
|
||||
evas_object_show(it->thumb);
|
||||
it->have_thumb = EINA_TRUE;
|
||||
it->do_thumb = EINA_FALSE;
|
||||
|
@ -333,7 +333,7 @@ _e_smart_reconfigure_do(void *data)
|
|||
it->image = it->item->plugin->icon_get
|
||||
(it->item->plugin, it->item, sd->view->evas);
|
||||
|
||||
edje_object_part_swallow(it->frame, "e.swallow.content", it->image);
|
||||
edje_object_part_swallow(it->frame, "e.swallow.icon", it->image);
|
||||
evas_object_show(it->image);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue