diff options
author | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-04-22 11:32:19 (GMT) |
---|---|---|
committer | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-04-28 05:07:15 (GMT) |
commit | 05d960f524c4df2c02b24a34e5f123596340aec8 (patch) | |
tree | 3982867971ac35394fb501b4638015ef68228bd5 /src | |
parent | 7347e233c5206f987ab5719d3a7a5c51a93de9e3 (diff) | |
download | eulogium-05d960f524c4df2c02b24a34e5f123596340aec8.zip eulogium-05d960f524c4df2c02b24a34e5f123596340aec8.tar.gz eulogium-05d960f524c4df2c02b24a34e5f123596340aec8.tar.bz2 |
Align app a little better
This patch adds some hint weights/alignment sizes for better alignment
of several widgets.
Also experiment with a table over a box for the 'main' content.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/eulogium.c | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/src/eulogium.c b/src/eulogium.c index 6f75fdc..fac9227 100644 --- a/src/eulogium.c +++ b/src/eulogium.c @@ -149,43 +149,22 @@ Evas_Object *eulogium_split_screen(Evas_Object *parent, Evas_Object *top, Evas_O evas_object_size_hint_weight_set(table, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(table, EVAS_HINT_FILL, EVAS_HINT_FILL); -// evas_object_size_hint_weight_set(top, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); -// evas_object_size_hint_align_set(top, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(top, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(top, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_table_pack(table, top, 0, 0, 1, 4); sep = elm_separator_add(table); elm_separator_horizontal_set(sep, EINA_TRUE); + evas_object_size_hint_weight_set(sep, EVAS_HINT_EXPAND, 0); evas_object_show(sep); - elm_table_pack(table, sep, 0, 3, 1, 1); + elm_table_pack(table, sep, 0, 4, 1, 1); - elm_table_pack(table, bottom, 0, 4, 1, 1); -// evas_object_size_hint_weight_set(bottom, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); -// evas_object_size_hint_align_set(bottom, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_table_pack(table, bottom, 0, 5, 1, 1); + evas_object_size_hint_weight_set(bottom, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(bottom, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_show(table); return table; -#if 0 - box = elm_box_add(parent); - evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL); - evas_object_show(box); - - evas_object_size_hint_align_set(top, EVAS_HINT_FILL, EVAS_HINT_FILL); - evas_object_data_set(top, "type", "t"); - elm_box_pack_end(box, top); - - obj = elm_separator_add(box); - elm_separator_horizontal_set(obj, EINA_TRUE); - evas_object_data_set(obj, "type", "s"); - evas_object_show(obj); - elm_box_pack_end(box, obj); - - evas_object_size_hint_align_set(bottom, EVAS_HINT_FILL, EVAS_HINT_FILL); - evas_object_data_set(bottom, "type", "b"); - elm_box_pack_end(box, bottom); - - return box; -#endif } Evas_Object *eulogium_print_progress(struct eulogium_data *eulogium) @@ -707,6 +686,7 @@ Evas_Object *eulogium_tripple_button_menu(Evas_Object *parent, const struct butt object = elm_separator_add(_top); elm_separator_horizontal_set(object, EINA_FALSE); + evas_object_size_hint_weight_set(object, 0, EVAS_HINT_EXPAND); evas_object_data_set(object, "type", "s"); evas_object_show(object); elm_box_pack_end(_top, object); |