#include "../include/define.h"
collections {
+ base_scale, 2.0;
#include "widget/button.edc"
#include "widget/gengrid.edc"
#include "widget/ctxpopup.edc"
#include "../include/define.h"
collections {
+ base_scale, 2.0;
#include "view/base.edc"
#include "view/action_menu.edc"
}
#include <Elementary.h>
#include <viewmgr.h>
#include <app_debug.h>
+#include <app_define.h>
#include "define.h"
#include "utils.h"
}
ad = data;
+ elm_app_base_scale_set(APP_BASE_SCALE);
+
elm_theme_overlay_add(NULL, THEMEFILE);
win = utils_add_window(ad->name);
}
elm_box_horizontal_set(box, horizontal);
- elm_box_padding_set(box, padding_h, padding_v);
+ elm_box_padding_set(box, ELM_SCALE_SIZE(padding_h),
+ ELM_SCALE_SIZE(padding_v));
evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_gengrid_horizontal_set(grid, horizontal);
elm_gengrid_align_set(grid, 0.0, 0.0);
elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_ALWAYS);
- elm_gengrid_item_size_set(grid,
- elm_config_scale_get() * width,
- elm_config_scale_get() * height);
+ elm_gengrid_item_size_set(grid, ELM_SCALE_SIZE(width),
+ ELM_SCALE_SIZE(height));
elm_scroller_policy_set(grid, ELM_SCROLLER_POLICY_OFF,
ELM_SCROLLER_POLICY_OFF);
return NULL;
}
- elm_table_padding_set(table, padding_x, padding_y);
+ elm_table_padding_set(table, ELM_SCALE_SIZE(padding_x),
+ ELM_SCALE_SIZE(padding_y));
evas_object_show(table);
if (part)
cnt = eina_list_count(priv->fav_list);
evas_object_size_hint_min_set(priv->grid,
- SIZE_FAVORITE_GRID_WIDTH * SIZE_FAVORITE_COL_MAX,
- _get_favorite_grid_height(cnt));
+ ELM_SCALE_SIZE(SIZE_FAVORITE_GRID_WIDTH
+ * SIZE_FAVORITE_COL_MAX),
+ ELM_SCALE_SIZE(_get_favorite_grid_height(cnt)));
elm_object_part_content_set(priv->contents_ly,
PART_FAVORITE, priv->grid);
goto end;
}
- elm_scroller_step_size_set(scr, 0, SIZE_SCROLLER_STEP);
+ elm_scroller_step_size_set(scr, 0, ELM_SCALE_SIZE(SIZE_SCROLLER_STEP));
box = utils_add_box(scr, NULL, EINA_FALSE, 0.0, 0.0);
if (!box) {
}
evas_object_geometry_get(priv->sort_btn, &x, &y, &w, &h);
- evas_object_move(ctxpopup, (x + w / 2) * elm_config_scale_get(),
- y * elm_config_scale_get());
+ evas_object_move(ctxpopup, ELM_SCALE_SIZE(x + w / 2),
+ ELM_SCALE_SIZE(y));
priv->sort_popup = ctxpopup;