#include <app_debug.h>
#include <viewmgr.h>
#include <inputmgr.h>
-#include <app_contents.h>
#include "defs.h"
#include "view.h"
#include "datamgr.h"
#include "utils.h"
-#define BUF_MAX_UID 32
-
enum input_handler_type {
INPUT_HANDLER_TYPE_EO,
INPUT_HANDLER_TYPE_DOWN
struct datamgr_item *di)
{
struct bar_item *bi;
- struct color_data bright_bg;
Evas_Object *eo, *ic, *focus_ic, *lbl, *focus_lbl, *bg, *mask;
- char buf[BUF_MAX_UID] = {0};
if (!priv || !box || !di) {
_ERR("Invalid argument");
if (!focus_lbl)
goto err;
- /* FIXMD: After multi user demo, it should be changed to default color */
- snprintf(buf, sizeof(buf), "%d", getuid());
- app_contents_get_color(buf, &bright_bg, NULL);
- bg = utils_add_bg(eo, bright_bg.r, bright_bg.g, bright_bg.b,
- bright_bg.a, PART_BAR_ITEM_BG);
+ bg = utils_add_bg(eo, COLOR_DEFAULT_R, COLOR_DEFAULT_G, COLOR_DEFAULT_B,
+ COLOR_DEFAULT_A, PART_BAR_ITEM_BG);
if (!bg)
goto err;
if (!strcmp(di->icon, di->focus_icon)) {
elm_object_signal_emit(eo, SIG_SHOW_MASK, SRC_PROG);
mask = utils_add_icon(eo, IMAGE_MASK, PART_BAR_ITEM_MASK);
- evas_object_color_set(mask, bright_bg.r, bright_bg.g,
- bright_bg.b, bright_bg.a);
+ evas_object_color_set(mask, COLOR_DEFAULT_R, COLOR_DEFAULT_G,
+ COLOR_DEFAULT_B, COLOR_DEFAULT_A);
}
if (di->noti)
#include <app_debug.h>
#include <viewmgr.h>
#include <inputmgr.h>
-#include <app_contents.h>
#include "defs.h"
#include "view.h"
#include "datamgr.h"
#include "utils.h"
-#define BUF_MAX_UID 32
#define MESSAGE_POPUP_CONTENT "Can not add users more than 8.<br>If you want to add another user, delete one of users"
enum input_handler_type {
struct datamgr_item *di)
{
struct _bar_item *bi;
- struct color_data bright_bg;
Evas_Object *eo, *ic, *focus_ic, *lbl, *focus_lbl, *bg, *mask;
- char buf[BUF_MAX_UID] = {0};
bi = calloc(1, sizeof(*bi));
if (!bi) {
if (!strcmp(di->icon, di->focus_icon))
elm_object_signal_emit(eo, SIG_SHOW_MASK, SRC_PROG);
- /* FIXME: After multi user demo, it should be changed to default color */
- snprintf(buf, sizeof(buf), "%d", getuid());
- app_contents_get_color(buf, &bright_bg, NULL);
- bg = utils_add_bg(eo, bright_bg.r, bright_bg.g, bright_bg.b,
- bright_bg.a, PART_BAR_ITEM_BG);
+ bg = utils_add_bg(eo, COLOR_DEFAULT_R, COLOR_DEFAULT_G, COLOR_DEFAULT_B,
+ COLOR_DEFAULT_A, PART_BAR_ITEM_BG);
if (!bg)
goto err;
if (!strcmp(di->icon, di->focus_icon)) {
elm_object_signal_emit(eo, SIG_SHOW_MASK, SRC_PROG);
mask = utils_add_icon(eo, IMAGE_MASK, PART_BAR_ITEM_MASK);
- evas_object_color_set(mask, bright_bg.r, bright_bg.g,
- bright_bg.b, bright_bg.a);
+ evas_object_color_set(mask, COLOR_DEFAULT_R, COLOR_DEFAULT_G,
+ COLOR_DEFAULT_B, COLOR_DEFAULT_A);
}
evas_object_size_hint_align_set(eo, 0.5, 0.0);