Re: [OM2009] Paroli background

2009-06-28 Thread Joel Newkirk
On Sun, 28 Jun 2009 23:58:25 +0200
Laszlo KREKACS  wrote:

> On Sun, Jun 28, 2009 at 10:22 PM, Joel Newkirk
> wrote:
> > Instead of recompiling paroli-launcher.edj to change backgrounds,
> > it would be nicer and more flexible if paroli and all its components
> > used a separate edje file
> 
> All paroli application is using its own .edj file.
> The edje file contains several "group" where you organize a
> gui using "part" and "program" elements.
> 
> When you create a widnow you specify which .edj file to use, and
> from that .edj file you can obtain the groups elements as objects,
> and manipulate them.
> 
> However I dont see how can it be done, to have two .edj files for one
> app. Maybe it is not possible at all. Anyway needs serious research.

I've not yet written much code utilizing Edje, but have been burrowing
through .edj files for some time now.  It certainly can be done, though
I confess I don't know how to do it with Elementary. (Illume itself does
this - the background is a separate .edj file, and for that matter each
icon can be as well) It's not so much having two different .edj files
for one app as it is having a separate element within the GUI that has
its own .edj file. 

Illume themes use:

 part { 
name: "e.swallow.bg"; 
type: SWALLOW;
mouse_events: 0;
description { 
state: "default" 0.0; 
}
}

as the background, where the actual background is loaded and changed
dynamically - I presume the background is loaded as a separate GUI and
stuffed into the SWALLOW part.

> By the way having each application a background image, needs
> some work on the theme. Because many elements have simply plain
> black background. So it is lot of work...

Not a problem at my end, as that's what I'm doing anyway - building a
new theme for Paroli. ;)  As I go I keep testing against black,
repeating pattern, and full image backgrounds.

j

> Having animated background can be done. Have a look at tween property
> of IMAGE in .edc reference:
> http://docs.enlightenment.org/api/edje/html/edcref.html
> 
> Laszlo
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [OM2009] Paroli background

2009-06-28 Thread Laszlo KREKACS
On Sun, Jun 28, 2009 at 10:22 PM, Joel Newkirk wrote:
> Instead of recompiling paroli-launcher.edj to change backgrounds,
> it would be nicer and more flexible if paroli and all its components
> used a separate edje file

All paroli application is using its own .edj file.
The edje file contains several "group" where you organize a
gui using "part" and "program" elements.

When you create a widnow you specify which .edj file to use, and
from that .edj file you can obtain the groups elements as objects,
and manipulate them.

However I dont see how can it be done, to have two .edj files for one
app. Maybe it is not possible at all. Anyway needs serious research.

By the way having each application a background image, needs
some work on the theme. Because many elements have simply plain
black background. So it is lot of work...

Having animated background can be done. Have a look at tween property
of IMAGE in .edc reference:
http://docs.enlightenment.org/api/edje/html/edcref.html

Laszlo

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [OM2009] Paroli background

2009-06-28 Thread Risto H. Kurppa
Joel: I like the idea!

Could you
a) try to implement it
or
b) write it as wish to http://www.paroli-project.org/trac/ and/or
http://wiki.openmoko.org/wiki/Paroli-issues#Feature_wishlist

Thanks!

Risto

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [OM2009] Paroli background

2009-06-28 Thread Marcel
Am Sonntag, 28. Juni 2009 22:22:44 schrieb Joel Newkirk:
> Instead of recompiling paroli-launcher.edj to change backgrounds,
> it would be nicer and more flexible if paroli and all its components
> used a separate edje file (like paroli-back.edj for example) for
> background. This permits all components to utilize the custom
> background instead of just the launcher, and makes it simpler to
> support a variety of background types, like scaled vs tiled, and
> even animated. (I toyed with the idea of having multiple background
> images, and cycling between them every few minutes)  Then add
> 'background' to Paroli settings->display to permit selecting among .edj
> files stowed in /usr/share/paroli/applications/background/, perhaps.
>
> j

Sounds great!

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[OM2009] Paroli background

2009-06-28 Thread Joel Newkirk
Instead of recompiling paroli-launcher.edj to change backgrounds,
it would be nicer and more flexible if paroli and all its components
used a separate edje file (like paroli-back.edj for example) for
background. This permits all components to utilize the custom
background instead of just the launcher, and makes it simpler to
support a variety of background types, like scaled vs tiled, and
even animated. (I toyed with the idea of having multiple background
images, and cycling between them every few minutes)  Then add
'background' to Paroli settings->display to permit selecting among .edj
files stowed in /usr/share/paroli/applications/background/, perhaps.

j

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community