#include "../include/define.h"
collections {
+ base_scale: 2.0;
#include "widget/button.edc"
#include "widget/gengrid.edc"
}
#include "../include/define.h"
collections {
+ base_scale: 2.0;
#include "view/notification_view.edc"
#include "view/square_view.edc"
#include "view/action_menu_view.edc"
}
}
part {
- name: "map";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- perspective {
- zplane: 0;
- focal: 1000;
- }
- visible: 0;
- }
- description {
- state: "selected" 0.0;
- inherit: "default" 0.0;
- perspective.zplane: -100;
- }
- }
- part {
name: "bg";
type: RECT;
scale: 1;
relative: 0.0 1.0;
}
color: COLOR_ITEM_DEFAULT;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
- map.on: 1;
}
}
part {
image.normal: "ic_thumb_connection.png";
min: 80 80;
fixed: 1 1;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
- map.on: 1;
}
}
part {
state : "default" 0.0;
rel1.to: "defaultbg";
rel2.to: "defaultbg";
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
- map.on: 1;
}
}
part {
color: COLOR_ITEM_FOCUS;
fixed: 0 1;
visible: 0;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
- map.on: 1;
visible: 1;
}
description {
color: COLOR_ITEM_FOCUS;
fixed: 1 0;
visible: 0;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
- map.on: 1;
visible: 1;
}
description {
color: COLOR_ITEM_FOCUS;
fixed: 1 0;
visible: 0;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
- map.on: 1;
visible: 1;
}
description {
align: 1.0 0.5;
color: COLOR_ITEM_BG;
fixed: 1 0;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
color: COLOR_ITEM_FOCUS;
- map.on: 1;
}
}
part {
rel1.to: "defaultbg_text";
rel2.to: "defaultbg_text";
color: COLOR_ITEM_BG;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
color: COLOR_ITEM_FOCUS;
- map.on: 1;
}
description {
state: "selected_0" 0.0;
align: 0.5 0.0;
color: COLOR_TEXT_TITLE;
fixed: 0 1;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
color: COLOR_TEXT_FOCUS;
- map.on: 1;
}
description {
state: "selected_0" 0.0;
align: 0.5 0.0;
color: COLOR_TEXT_INFO;
fixed: 0 1;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
color: COLOR_TEXT_FOCUS;
- map.on: 1;
}
description {
state: "selected_0" 0.0;
align: 0.5 0.0;
color: COLOR_TEXT_INFO;
fixed: 0 1;
- map {
- perspective_on: 1;
- perspective: "map";
- }
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
color: COLOR_TEXT_FOCUS;
- map.on: 1;
}
description {
state: "selected_0" 0.0;
name: "selected";
signal: "elm,state,selected";
source: "elm";
- action: STATE_SET "selected" 0.0;
- target: "map";
- after: "after_selected";
- }
- program {
- name: "after_selected";
- action: STATE_SET "default" 0.0;
- target: "map";
- after: "item_selected";
- }
- program {
- name: "item_selected";
action: SIGNAL_EMIT SIGNAL_ITEM_SELECTED SOURCE_EDC;
}
}
_ERR("Add table failed.");
return false;
}
- elm_table_padding_set(table, BUTTON_BORDER, BUTTON_BORDER);
+ elm_table_padding_set(table,
+ ELM_SCALE_SIZE(BUTTON_BORDER), ELM_SCALE_SIZE(BUTTON_BORDER));
evas_object_show(table);
elm_object_part_content_set(priv->base, PART_MENU, table);
evas_object_smart_callback_add(priv->table, SIGNAL_CHILD_REMOVED,
#include <Elementary.h>
#include <viewmgr.h>
#include <app_debug.h>
+#include <app_define.h>
#include "define.h"
#include "notification_view.h"
ad = data;
+ elm_app_base_scale_set(APP_BASE_SCALE);
elm_theme_overlay_add(NULL, THEMEFILE);
elm_config_focus_move_policy_set(ELM_FOCUS_MOVE_POLICY_CLICK);
}
elm_gengrid_item_size_set(grid,
- NOTIFICATION_ITEM_WIDTH + NOTIFICATION_ITEM_PADDING,
- NOTIFICATION_ITEM_HEIGHT + NOTIFICATION_ITEM_PADDING);
+ ELM_SCALE_SIZE(NOTIFICATION_ITEM_WIDTH +
+ NOTIFICATION_ITEM_PADDING),
+ ELM_SCALE_SIZE(NOTIFICATION_ITEM_HEIGHT +
+ NOTIFICATION_ITEM_PADDING));
elm_gengrid_align_set(grid, 0.0, 0.0);
elm_gengrid_horizontal_set(grid, EINA_TRUE);
evas_object_size_hint_weight_set(grid,
if (w > NOTIFICATION_CATEGORY_WIDTH)
w = NOTIFICATION_CATEGORY_WIDTH;
evas_object_size_hint_min_set(priv->category[category]->grid,
- w,
- NOTIFICATION_CATEGORY_HEIGHT +
- NOTIFICATION_ITEM_PADDING);
+ ELM_SCALE_SIZE(w),
+ ELM_SCALE_SIZE(NOTIFICATION_CATEGORY_HEIGHT +
+ NOTIFICATION_ITEM_PADDING));
}
static void _update_list(struct _priv *priv)
evas_object_size_hint_align_set(scroller, 0.0, 0.0);
elm_object_content_set(priv->base, scroller);
elm_scroller_step_size_set(scroller,
- NOTIFICATION_CATEGORY_STEP_SIZE, 0);
+ ELM_SCALE_SIZE(NOTIFICATION_CATEGORY_STEP_SIZE), 0);
priv->category_container = elm_box_add(scroller);
elm_object_content_set(scroller, priv->category_container);
elm_box_align_set(priv->category_container, 0.0, 0.0);
elm_box_horizontal_set(priv->category_container, EINA_TRUE);
elm_box_padding_set(priv->category_container,
- NOTIFICATION_CATEGORY_PADDING_X,
- NOTIFICATION_CATEGORY_PADDING_Y);
+ ELM_SCALE_SIZE(NOTIFICATION_CATEGORY_PADDING_X),
+ ELM_SCALE_SIZE(NOTIFICATION_CATEGORY_PADDING_Y));
elm_object_focus_allow_set(scroller, EINA_FALSE);
elm_object_focus_allow_set(priv->category_container, EINA_FALSE);
}
elm_box_align_set(priv->list, 0.0, 0.0);
elm_box_padding_set(priv->list,
- NOTIFICATION_ITEM_PADDING_X,
- NOTIFICATION_ITEM_PADDING_Y);
+ ELM_SCALE_SIZE(NOTIFICATION_ITEM_PADDING_X),
+ ELM_SCALE_SIZE(NOTIFICATION_ITEM_PADDING_Y));
evas_object_show(priv->list);
elm_object_content_set(scroller, priv->list);
evas_object_smart_callback_add(priv->list, SIGNAL_CHILD_REMOVED,