forked from enlightenment/ephoto
Improve slideshow gadget theme
This commit is contained in:
parent
f56395a2ba
commit
ced5750c9b
|
@ -40,6 +40,10 @@ collections {
|
|||
state: "default" 0.0;
|
||||
color: 0 0 0 255;
|
||||
}
|
||||
description {
|
||||
state: "gadget" 0.0;
|
||||
color: 115 115 115 45;
|
||||
}
|
||||
}
|
||||
rect { "slide_clip";
|
||||
scale: 1;
|
||||
|
@ -119,6 +123,18 @@ collections {
|
|||
}
|
||||
}
|
||||
programs {
|
||||
program {
|
||||
signal: "gadget";
|
||||
source: "ephoto";
|
||||
action: STATE_SET "gadget" 0.0;
|
||||
target: "background";
|
||||
}
|
||||
program {
|
||||
signal: "default";
|
||||
source: "ephoto";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "background";
|
||||
}
|
||||
program {
|
||||
signal: "ephoto,fade";
|
||||
source: "ephoto";
|
||||
|
@ -330,6 +346,10 @@ collections {
|
|||
state: "default" 0.0;
|
||||
color: 0 0 0 255;
|
||||
}
|
||||
description {
|
||||
state: "gadget" 0.0;
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
}
|
||||
rect { "slide_clip";
|
||||
scale: 1;
|
||||
|
@ -668,6 +688,18 @@ collections {
|
|||
}
|
||||
}
|
||||
programs {
|
||||
program {
|
||||
signal: "gadget";
|
||||
source: "ephoto";
|
||||
action: STATE_SET "gadget" 0.0;
|
||||
target: "background";
|
||||
}
|
||||
program {
|
||||
signal: "default";
|
||||
source: "ephoto";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "background";
|
||||
}
|
||||
program {
|
||||
signal: "ephoto,slideshow,move,left,to,right";
|
||||
source: "ephoto";
|
||||
|
|
|
@ -418,6 +418,8 @@ _slideshow_item_get(Ephoto_Slideshow *ss, Ephoto_Entry *entry, Evas_Object *pare
|
|||
layout = elm_layout_add(parent);
|
||||
elm_layout_file_set(layout, PACKAGE_DATA_DIR "/themes/ephoto.edj",
|
||||
"ephoto,slideshow,item");
|
||||
if (ss->ephoto->gadget)
|
||||
elm_layout_signal_emit(layout, "gadget", "ephoto");
|
||||
EPHOTO_EXPAND(layout);
|
||||
EPHOTO_FILL(layout);
|
||||
evas_object_data_set(layout, "entry", entry);
|
||||
|
@ -1076,6 +1078,8 @@ ephoto_slideshow_add(Ephoto *ephoto, Evas_Object *parent)
|
|||
|
||||
elm_layout_file_set(slideshow, PACKAGE_DATA_DIR "/themes/ephoto.edj",
|
||||
"ephoto,slideshow,base");
|
||||
if (ephoto->gadget)
|
||||
elm_layout_signal_emit(slideshow, "gadget", "ephoto");
|
||||
evas_object_event_callback_add(slideshow, EVAS_CALLBACK_DEL, _slideshow_del,
|
||||
ss);
|
||||
if (!ephoto->gadget)
|
||||
|
|
Loading…
Reference in New Issue