Ui text: set some default font and size

This should later be setup through the theme.
One option will be to use global text classes.
Until the above is finalized, at least set this font and size to make
setup of the widget a bit easier.
This commit is contained in:
Daniel Hirt 2017-05-31 10:50:55 +03:00
parent 3edf4985a4
commit ba45b93b1e
1 changed files with 5 additions and 0 deletions

View File

@ -2979,6 +2979,11 @@ _efl_ui_text_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Text_Data *priv)
text_obj = efl_add(EFL_UI_INTERNAL_TEXT_INTERACTIVE_CLASS, obj);
efl_composite_attach(obj, text_obj);
// FIXME: use the theme, when a proper theming option is available
// (possibly, text_classes).
// For now, set this for easier setup
efl_text_font_set(text_obj, "Sans", 12);
efl_canvas_group_add(efl_super(obj, MY_CLASS));
elm_widget_sub_object_parent_add(obj);