summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-05-19 11:20:00 +0100
committerAlastair Poole <netstar@gmail.com>2020-05-19 11:20:32 +0100
commit252abddf9cb6d766c893341c79d2a6830cec19b1 (patch)
treecc9ec4191dc02a6f8110c2ec9f44db198618dc06
parenteb428dc6e50cdc648db212b0dadb7e55c171893e (diff)
proc_view: padding
-rw-r--r--src/bin/ui/ui_process_view.c30
1 files 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
895static Evas_Object * 895static Evas_Object *
896_tabs_add(Evas_Object *parent, Ui_Process *ui) 896_tabs_add(Evas_Object *parent, Ui_Process *ui)
897{ 897{
898 Evas_Object *hbox, *btn; 898 Evas_Object *hbox, *btn, *border;
899 899
900 hbox = elm_box_add(parent); 900 hbox = elm_box_add(parent);
901 evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, 0); 901 evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, 0);
902 evas_object_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL); 902 evas_object_size_hint_align_set(hbox, EVAS_HINT_FILL, EVAS_HINT_FILL);
903 elm_box_horizontal_set(hbox, EINA_TRUE); 903 elm_box_horizontal_set(hbox, EINA_TRUE);
904 elm_box_homogeneous_set(hbox, EINA_TRUE);
904 evas_object_show(hbox); 905 evas_object_show(hbox);
905 906
907 border = elm_frame_add(parent);
908 evas_object_size_hint_weight_set(border, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
909 evas_object_size_hint_align_set(border, EVAS_HINT_FILL, EVAS_HINT_FILL);
910 elm_object_style_set(border, "pad_small");
911 evas_object_show(border);
912
906 ui->btn_main = btn = elm_button_add(parent); 913 ui->btn_main = btn = elm_button_add(parent);
907 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 914 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
908 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); 915 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
909 elm_object_text_set(btn, _("Process")); 916 elm_object_text_set(btn, _("Process"));
910 elm_object_disabled_set(btn, EINA_TRUE); 917 elm_object_disabled_set(btn, EINA_TRUE);
911 evas_object_show(btn); 918 evas_object_show(btn);
912 elm_box_pack_end(hbox, btn); 919 elm_object_content_set(border, btn);
920 elm_box_pack_end(hbox, border);
913 evas_object_smart_callback_add(btn, "clicked", _btn_process_clicked_cb, ui); 921 evas_object_smart_callback_add(btn, "clicked", _btn_process_clicked_cb, ui);
914 922
923 border = elm_frame_add(parent);
924 evas_object_size_hint_weight_set(border, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
925 evas_object_size_hint_align_set(border, EVAS_HINT_FILL, EVAS_HINT_FILL);
926 elm_object_style_set(border, "pad_small");
927 evas_object_show(border);
928
915 ui->btn_thread = btn = elm_button_add(parent); 929 ui->btn_thread = btn = elm_button_add(parent);
916 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 930 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
917 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); 931 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
918 elm_object_text_set(btn, _("Threads")); 932 elm_object_text_set(btn, _("Threads"));
919 elm_object_disabled_set(btn, EINA_FALSE); 933 elm_object_disabled_set(btn, EINA_FALSE);
920 evas_object_show(btn); 934 evas_object_show(btn);
921 elm_box_pack_end(hbox, btn); 935 elm_object_content_set(border, btn);
936 elm_box_pack_end(hbox, border);
922 evas_object_smart_callback_add(btn, "clicked", _btn_threads_clicked_cb, ui); 937 evas_object_smart_callback_add(btn, "clicked", _btn_threads_clicked_cb, ui);
923 938
939 border = elm_frame_add(parent);
940 evas_object_size_hint_weight_set(border, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
941 evas_object_size_hint_align_set(border, EVAS_HINT_FILL, EVAS_HINT_FILL);
942 elm_object_style_set(border, "pad_small");
943 evas_object_show(border);
944
924 ui->btn_info = btn = elm_button_add(parent); 945 ui->btn_info = btn = elm_button_add(parent);
925 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 946 evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
926 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); 947 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
927 elm_object_text_set(btn, _("Information")); 948 elm_object_text_set(btn, _("Information"));
928 elm_object_disabled_set(btn, EINA_FALSE); 949 elm_object_disabled_set(btn, EINA_FALSE);
929 evas_object_show(btn); 950 evas_object_show(btn);
930 elm_box_pack_end(hbox, btn); 951 elm_object_content_set(border, btn);
952 elm_box_pack_end(hbox, border);
931 evas_object_smart_callback_add(btn, "clicked", _btn_info_clicked_cb, ui); 953 evas_object_smart_callback_add(btn, "clicked", _btn_info_clicked_cb, ui);
932 954
933 return hbox; 955 return hbox;