Hi, On 6 December 2016 at 09:53, Bruno Dilly <bdi...@profusion.mobi> wrote:
> On Mon, Dec 5, 2016 at 8:47 PM, Simon Lees <sfl...@suse.de> wrote: > > > > > > > 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) > > > > Using scripts it is doable. > Lets say, you could do something like: > > program { > name: "part,in"; > signal: "mouse,in,*"; > source: "part"; > script { > handle_mouse_in(sig); > } > } > > on handle_mouse_in you would be able to get the seat name > using something like strcpy(seat_name, sig[strlen("mouse,in,")]); > > You could even create a list and append new random colors for each > announced seat. > > But it's not only about colors, you could select images, or font size / > families... anything > that could matter for a theme. > Thanks for the response, Bruno. This is all pretty much what I had in mind, I just wanted clarification. And indeed beyond scripting or app code I can't see how we would design for N users. -- Jean-Philippe André ------------------------------------------------------------------------------ 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