Title bar not transparent or BG Transparent?

Technical | Application Development | patash | 3 months | 2 Replies | 1,126 Views



  • ****
  • 491
  • 4065 Points
  • Tizen is better than iOS.
Title bar not transparent or BG Transparent?
« On:August 18, 2015, 01:26:15 PM »
Iam trying to use the image in the background with title bar or status bar that shows the mobile signal strength and headphones connected....
But its not becoming transparent... Where am i going wrong ?
Also the Label is not of correct size and not positioned correctly. it rather takes its default position at 0,0 co-ordinate.

   /* Windows Background */
   char *buf = NULL;
   Evas_Object *img_bg = elm_bg_add(ad->win);
   char *rsrc_path = app_get_resource_path();
   dlog_print(DLOG_DEBUG, LOG_TAG, "rsrc path = %s", rsrc_path);

   buf = g_strdup_printf("%s/images/gradient.jpg", rsrc_path);
   if (EINA_TRUE != elm_bg_file_set(img_bg, buf, NULL)) {
      /* Failed to set the bg file */
      dlog_print(DLOG_DEBUG, LOG_TAG, "elm_bg_file_set failed to set the bg file: %s", buf);
   } else {
      dlog_print(DLOG_DEBUG, LOG_TAG, "elm_bg_file_set success");
      elm_bg_option_set(img_bg, ELM_BG_OPTION_STRETCH);
      evas_object_size_hint_weight_set(img_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
      elm_win_resize_object_add(ad->win, img_bg);


   /* Conformant */
   ad->conform = elm_conformant_add(ad->win);
   elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_SHOW);//ELM_WIN_INDICATOR_HIDE);
   elm_win_indicator_opacity_set(ad->win, ELM_WIN_INDICATOR_TRANSLUCENT);//ELM_WIN_INDICATOR_BG_TRANSPARENT);
   evas_object_size_hint_weight_set(ad->conform, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(ad->win, ad->conform);

   /* Label*/
   ad->label = elm_label_add(ad->conform);
   elm_object_text_set(ad->label, "Hello EFL");
   evas_object_size_hint_weight_set(ad->label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_object_content_set(ad->conform, ad->label);
    evas_object_resize(ad->label, 420, 120);
    evas_object_move(ad->label, 60, 100);

« Last Edit: August 18, 2015, 01:51:22 PM by patash »



  • **
  • 59
  • 1310 Points
Re: Title bar not transparent or BG Transparent?
« Reply #1 On:August 18, 2015, 04:00:01 PM »
Hi Ashish,

Regarding the label positioning, you should explore more towards edc files which are an integral part of EFL UI. EDC makes it very easy for you to create your layout and position your widgets as you wish within the screen. You can also use the existing available layouts provided in SDK.





  • ****
  • 491
  • 4065 Points
  • Tizen is better than iOS.
Re: Title bar not transparent or BG Transparent?
« Reply #2 On:August 18, 2015, 04:16:51 PM »
Well EDC is like un-chartered waters for me and unexplored.
Also i tried to find a windows utility to create it, but dint find any. And is it drag and drop? So cannot proceed further...
How do i compile them or do we need them to be compiled ?
BTW where is the picture box gone ? Or can the Box have a background picture and how of-course for now without EDC.
Many questions in my mind now. But the Label position is stopping my work and taking my patience away.
Also ur link - lacks pictures of examples given there. Hope they update them soon.

Now i think if i would have been on mac/linux it would have been better.

Ashish Patil
« Last Edit: August 18, 2015, 04:24:49 PM by patash »


Facebook Comments