menu: Button sizing consistency

This commit is contained in:
Alastair Poole 2021-02-09 20:10:46 +00:00
parent e1e7f92012
commit 8270d06f22
2 changed files with 3 additions and 3 deletions

View File

@ -614,6 +614,8 @@ _graph(Ui *ui, Evas_Object *parent)
evas_object_size_hint_align_set(btn, 0.99, 0.01);
elm_object_focus_allow_set(btn, 0);
evas_object_smart_callback_add(btn, "clicked", _btn_menu_clicked_cb, ad);
// XXX: :)
evas_object_size_hint_min_set(btn, ELM_SCALE_SIZE(BTN_HEIGHT), ELM_SCALE_SIZE(BTN_HEIGHT));
elm_table_pack(tbl, btn, 0, 0, 5, ad->cpu_count);
bx = elm_box_add(box);

View File

@ -171,7 +171,6 @@ _item_create(Evas_Object *obj)
evas_object_size_hint_align_set(tb, FILL, FILL);
evas_object_size_hint_weight_set(tb, EXPAND, 0);
hbx = elm_box_add(tb);
elm_box_horizontal_set(hbx, 1);
evas_object_size_hint_align_set(hbx, 0.0, FILL);
@ -1215,8 +1214,7 @@ _ui_content_system_add(Ui_Data *pd, Evas_Object *parent)
evas_object_show(tb);
rec = evas_object_rectangle_add(evas_object_evas_get(parent));
evas_object_size_hint_min_set(rec, 1, ELM_SCALE_SIZE(LIST_BTN_HEIGHT));
evas_object_size_hint_max_set(rec, 1, ELM_SCALE_SIZE(LIST_BTN_HEIGHT));
evas_object_size_hint_min_set(rec, ELM_SCALE_SIZE(BTN_HEIGHT), ELM_SCALE_SIZE(BTN_HEIGHT));
elm_table_pack(tb, rec, i, 1, 1, 1);
pd->btn_menu = btn = _btn_create(tb, "menu", _("Menu"),