Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
bin: Revert commit 51eb5af, restore elm_bg without transparency issue #…
Browse files Browse the repository at this point in the history
…29

This fixes issue #34, background removal causing transparent bottom box.
However issue #29 remains. Transparency no longer works as elm_bg cannot
become transparent till regression in EFL 1.21* is fixed. At which time
need to restore alpha settings on elm_bg. Purposely left out as it
causes the background to become white or gray.

Remains open till fixed in EFL
#29

Fixes #34
#34
  • Loading branch information
wltjr committed Aug 7, 2018
1 parent 81ed95f commit 00fe365
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bin/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static const Ecore_Getopt options =
}
};

static Evas_Object *_bg;
static Evas_Object *_box_editor;
static Evas_Object *_box_main;
static Evas_Object *_menu;
Expand Down Expand Up @@ -814,6 +815,11 @@ create_window(int argc, char *argv[])
elm_win_alpha_set (_win, EINA_TRUE);
elm_win_autodel_set(_win, EINA_FALSE);

_bg = elm_bg_add (_win);
elm_win_resize_object_add (_win, _bg);
evas_object_size_hint_weight_set (_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show (_bg);

_box_main = obj = elm_box_add (_win);
evas_object_size_hint_weight_set (obj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add (_win, obj);
Expand Down

0 comments on commit 00fe365

Please sign in to comment.