On 12/06/2016 01:18 AM, Bruno Dilly wrote:
> Hi jpeg,
> 
> On Mon, Dec 5, 2016 at 2:21 AM, Jean-Philippe André <j...@videolan.org>
> wrote:
> 
>> Hi,
>>
>>
>> This seems to assume a finite and known in advance number of seats?
>> I'm not well aware of what the seats are or how that's all supposed to
>> work, but this sounds strange to me.
>>
>>
> On theme point of view, I can't see how this could be any different.
> If you don't know how many seats do you support or which seats would be
> supported,
> how could you be able to design it?
> 
> EDC is pretty much a lot of parts with different states and programas
> listening to specific signals-sources and taking an action when it matches.
> Everything is hardcoded on EDC files, right?
> 
> But nothing stops you to create an UI more dynamic on code.
> You could listen to "seat,added,X" and create a random color
> to represent it. Then when you receive "mouse,over,X" for specific parts,
> you could change their colors, images, emit different sounds or whatever
> that makes sense for you.
> 
> 
> 
>> Maybe someone can enlighten me? Why would the theme know the number of
>> seats?
>> (the approach probably makes perfect sense but i'm not sure what edje
>> should do wrt. seats)
>>
> 

I can't remember if you can currently do something like the % operator
with edje, but you could make it so that the first 4 seats get different
colors and then the 5th gets the same as the first. If you were only
trying to do colors if you can extract the X part (again don't remember
if this is possible) you could use a macro and substitute in a lookup
table for colors (saves writing every part X times)

-- 

Simon Lees (Simotek)                            http://simotek.net

Emergency Update Team                           keybase.io/simotek
SUSE Linux                            Adeliade Australia, UTC+9:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to