As far as I can work out, there isn't currently a way to control the appearance of a EWL button label (i.e. the Ewl_Button.label_object) from an edje theme, other than using the global /entry/* data items. I'm guessing the same applies to all EWL text in general.

The main drawback to this, other than restricting themeability, is the fact that the button's Edje 'programs' cannot affect the button label (e.g. to gray the text when the button's disabled, or to animate it on a click). I'd ideally like to be able to use Edje's rel1/2, font, size, fit, align, color and programs to theme my EWL button labels...

I'd like to try and fix it, so perhaps Nathan or others could tell me what they think of this initial thinking:

The problem as I see it is that an Edje part of type TEXT will not apply its settings to EWL text. Rather, it will create an additional Edje_Part which is not reflected in the EWL object hierarchy.

In other words, if you apply an Edje TEXT theme to a EWL text widget, you end up with *two* Evas text objects superimposed.

Assuming that's right, then perhaps the right solution begins along these lines....

OPTION A
Ewl_Text (actually Ewl_Entry) is currently creating an Evas Textblock object. This is not consistent behaviour with other widgets (e.g. Ewl_Button) which do not create a visible object, but rely on the Edje theme to do this for them.

So, Ewl_Text/Entry should not explicitly create an Evas Textblock, but rather get a handle to that generated by Edje. If no appropriate Edje group is found, then nothing should be displayed.

I presume the problem with this approach is that Edje creates an Evas Text object, whereas EWL uses an Evas *Textblock*, and that this is necessary for text-editing capability. If so, then should EWL have another simpler text object which uses Evas Text and allows themeing, or should Edje support Textblocks?

OPTION B
Allow Ewl_Entry to create the Textblock as it currently does, but somehow get Edje to theme that object rather than creating its own Text object...

Thoughts?

--
Simon Poole
www.appliancestudio.com





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to