forked from enlightenment/rage
clean/fix art show if same art img 2 times in a row and limit size
now ary images are limited to a 280x280 box which looks so much nicer than it being badly scaled
This commit is contained in:
parent
65a614e5e2
commit
cddd47c9b7
|
@ -337,6 +337,7 @@ collections {
|
||||||
}
|
}
|
||||||
part { name: "art_clip"; type: RECT;
|
part { name: "art_clip"; type: RECT;
|
||||||
clip_to: "speaker_clip";
|
clip_to: "speaker_clip";
|
||||||
|
scale: 1;
|
||||||
description { state: "default" 0.0;
|
description { state: "default" 0.0;
|
||||||
visible: 0;
|
visible: 0;
|
||||||
color: 255 255 255 0;
|
color: 255 255 255 0;
|
||||||
|
@ -344,6 +345,28 @@ collections {
|
||||||
rel2.relative: 1.5 1.5;
|
rel2.relative: 1.5 1.5;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
aspect: 1.0 1.0; aspect_preference: NONE;
|
aspect: 1.0 1.0; aspect_preference: NONE;
|
||||||
|
max: 560 560;
|
||||||
|
}
|
||||||
|
description { state: "visible" 0.0;
|
||||||
|
inherit: "default" 0.0;
|
||||||
|
rel1.relative: 0.0 0.0;
|
||||||
|
rel2.relative: 1.0 1.0;
|
||||||
|
visible: 1;
|
||||||
|
color: 255 255 255 255;
|
||||||
|
max: 280 280;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
part { name: "art_clip2"; type: RECT;
|
||||||
|
clip_to: "art_clip";
|
||||||
|
description { state: "default" 0.0;
|
||||||
|
fixed: 1 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
part { name: "art_clip3"; type: RECT;
|
||||||
|
description { state: "default" 0.0;
|
||||||
|
visible: 0;
|
||||||
|
color: 255 255 255 0;
|
||||||
|
fixed: 1 1;
|
||||||
}
|
}
|
||||||
description { state: "visible" 0.0;
|
description { state: "visible" 0.0;
|
||||||
inherit: "default" 0.0;
|
inherit: "default" 0.0;
|
||||||
|
@ -353,10 +376,18 @@ collections {
|
||||||
color: 255 255 255 255;
|
color: 255 255 255 255;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
part { name: "art_clip2"; type: RECT;
|
part { name: "artshadow"; mouse_events: 0;
|
||||||
clip_to: "art_clip";
|
clip_to: "art_clip3";
|
||||||
description { state: "default" 0.0;
|
description { state: "default" 0.0;
|
||||||
fixed: 1 1;
|
fixed: 1 1;
|
||||||
|
rel.to: "art_clip";
|
||||||
|
color: 255 255 255 128;
|
||||||
|
image.normal: "win_shadow.png";
|
||||||
|
image.border: 14 14 14 14;
|
||||||
|
image.middle: 0;
|
||||||
|
rel1.offset: -7 -3;
|
||||||
|
rel2.offset: 6 11;
|
||||||
|
fill.smooth: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
part { name: "rage.art"; type: SWALLOW; mouse_events: 0;
|
part { name: "rage.art"; type: SWALLOW; mouse_events: 0;
|
||||||
|
@ -399,20 +430,41 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
program { signal: "state,novideo"; source: "rage";
|
||||||
|
action: STATE_SET "default" 0.0;
|
||||||
|
transition: ACCELERATE 0.2;
|
||||||
|
target: "art_clip";
|
||||||
|
target: "art_clip3";
|
||||||
|
}
|
||||||
|
program { signal: "state,default"; source: "rage";
|
||||||
|
action: STATE_SET "default" 0.0;
|
||||||
|
transition: ACCELERATE 0.2;
|
||||||
|
target: "art_clip";
|
||||||
|
target: "art_clip3";
|
||||||
|
}
|
||||||
|
program { signal: "state,video"; source: "rage";
|
||||||
|
action: STATE_SET "default" 0.0;
|
||||||
|
transition: ACCELERATE 0.2;
|
||||||
|
target: "art_clip";
|
||||||
|
target: "art_clip3";
|
||||||
|
}
|
||||||
program { signal: "action,newvid"; source: "rage";
|
program { signal: "action,newvid"; source: "rage";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
transition: ACCELERATE 0.2;
|
transition: ACCELERATE 0.2;
|
||||||
target: "art_clip";
|
target: "art_clip";
|
||||||
|
target: "art_clip3";
|
||||||
}
|
}
|
||||||
program { signal: "state,noart"; source: "rage";
|
program { signal: "state,noart"; source: "rage";
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
transition: ACCELERATE 0.3;
|
transition: ACCELERATE 0.3;
|
||||||
target: "art_clip";
|
target: "art_clip";
|
||||||
|
target: "art_clip3";
|
||||||
}
|
}
|
||||||
program { signal: "state,art"; source: "rage";
|
program { signal: "state,art"; source: "rage";
|
||||||
action: STATE_SET "visible" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
transition: DECELERATE 0.3;
|
transition: DECELERATE 0.3;
|
||||||
target: "art_clip";
|
target: "art_clip";
|
||||||
|
target: "art_clip3";
|
||||||
}
|
}
|
||||||
|
|
||||||
part { name: "rage.gesture"; type: SWALLOW;
|
part { name: "rage.gesture"; type: SWALLOW;
|
||||||
|
|
|
@ -741,6 +741,8 @@ win_art(Evas_Object *win, const char *path)
|
||||||
evas_object_del(inf->artimg);
|
evas_object_del(inf->artimg);
|
||||||
inf->artimg = NULL;
|
inf->artimg = NULL;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
elm_layout_signal_emit(inf->lay, "state,art", "rage");
|
||||||
}
|
}
|
||||||
if (!inf->artimg)
|
if (!inf->artimg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue