Scale windows per elm scale configuration
This commit is contained in:
parent
c54eb7b6f2
commit
ce8b9a8b93
|
@ -411,7 +411,7 @@ _edi_project_choose()
|
|||
elm_fileselector_path_set(fs, getenv("HOME"));
|
||||
elm_fileselector_sort_method_set(fs, ELM_FILESELECTOR_SORT_BY_FILENAME_ASC);
|
||||
|
||||
evas_object_resize(win, 380, 260);
|
||||
evas_object_resize(win, 380 * elm_config_scale_get(), 260 * elm_config_scale_get());
|
||||
evas_object_show(win);
|
||||
|
||||
return win;
|
||||
|
@ -464,7 +464,7 @@ edi_win_setup(const char *path)
|
|||
elm_box_pack_end(vbx, content);
|
||||
|
||||
ERR("Loaded project at %s", path);
|
||||
evas_object_resize(win, 560, 420);
|
||||
evas_object_resize(win, 560 * elm_config_scale_get(), 420 * elm_config_scale_get());
|
||||
evas_object_show(win);
|
||||
|
||||
return win;
|
||||
|
|
|
@ -213,7 +213,7 @@ _edi_mainview_item_win_add(Edi_Path_Options *options)
|
|||
content = _edi_mainview_content_create(options->path, options->type, win);
|
||||
elm_win_resize_object_add(win, content);
|
||||
|
||||
evas_object_resize(win, 380, 260);
|
||||
evas_object_resize(win, 380 * elm_config_scale_get(), 260 * elm_config_scale_get());
|
||||
evas_object_show(win);
|
||||
}
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ edi_editor_search(Evas_Object *entry)
|
|||
elm_box_pack_end(hbx, btn);
|
||||
evas_object_smart_callback_add(btn, "clicked", _search_clicked, entry);
|
||||
|
||||
evas_object_resize(_search_win, 300, 50);
|
||||
evas_object_resize(_search_win, 300 * elm_config_scale_get(), 50 * elm_config_scale_get());
|
||||
evas_object_show(_search_win);
|
||||
|
||||
_current_search = NULL;
|
||||
|
|
Loading…
Reference in New Issue