netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=252abddf9cb6d766c893341c79d2a6830cec19b1
commit 252abddf9cb6d766c893341c79d2a6830cec19b1 Author: Alastair Poole <nets...@gmail.com> Date: Tue May 19 11:20:00 2020 +0100 proc_view: padding --- src/bin/ui/ui_process_view.c | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c index 931e630..19957c6 100644 --- a/src/bin/ui/ui_process_view.c +++ b/src/bin/ui/ui_process_view.c @@ -895,39 +895,61 @@ _btn_info_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info static Evas_Object * _tabs_add(Evas_Object *parent, Ui_Process *ui) { - Evas_Object *hbox, *btn; + Evas_Object *hbox, *btn, *border; hbox = elm_box_add(parent); evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, 0); evas_object_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_box_horizontal_set(hbox, EINA_TRUE); + elm_box_homogeneous_set(hbox, EINA_TRUE); evas_object_show(hbox); + border = elm_frame_add(parent); + evas_object_size_hint_weight_set(border, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(border, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_object_style_set(border, "pad_small"); + evas_object_show(border); + ui->btn_main = btn = elm_button_add(parent); evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_text_set(btn, _("Process")); elm_object_disabled_set(btn, EINA_TRUE); evas_object_show(btn); - elm_box_pack_end(hbox, btn); + elm_object_content_set(border, btn); + elm_box_pack_end(hbox, border); evas_object_smart_callback_add(btn, "clicked", _btn_process_clicked_cb, ui); + border = elm_frame_add(parent); + evas_object_size_hint_weight_set(border, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(border, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_object_style_set(border, "pad_small"); + evas_object_show(border); + ui->btn_thread = btn = elm_button_add(parent); evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_text_set(btn, _("Threads")); elm_object_disabled_set(btn, EINA_FALSE); evas_object_show(btn); - elm_box_pack_end(hbox, btn); + elm_object_content_set(border, btn); + elm_box_pack_end(hbox, border); evas_object_smart_callback_add(btn, "clicked", _btn_threads_clicked_cb, ui); + border = elm_frame_add(parent); + evas_object_size_hint_weight_set(border, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(border, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_object_style_set(border, "pad_small"); + evas_object_show(border); + ui->btn_info = btn = elm_button_add(parent); evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_text_set(btn, _("Information")); elm_object_disabled_set(btn, EINA_FALSE); evas_object_show(btn); - elm_box_pack_end(hbox, btn); + elm_object_content_set(border, btn); + elm_box_pack_end(hbox, border); evas_object_smart_callback_add(btn, "clicked", _btn_info_clicked_cb, ui); return hbox; --