From cb52dc7e3baa62b304dcb15767867a97b6dde9e2 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Thu, 16 Jun 2016 13:03:46 +0900 Subject: [PATCH] elm_conform: apply Tizen 2.4 feature Added Indicator opacity modes. Signed-off-by: Hosang Kim Change-Id: I69b36f9818e7071d86423b7b8a995778f4f6a674 --- src/lib/elm_conform.c | 11 +++++++++++ src/lib/elm_win.eo | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c index f5cdcc2..a948c17 100644 --- a/src/lib/elm_conform.c +++ b/src/lib/elm_conform.c @@ -567,6 +567,17 @@ _indicator_opacity_set(Evas_Object *conformant, Elm_Win_Indicator_Opacity_Mode i ELM_CONFORMANT_DATA_GET(conformant, sd); sd->ind_o_mode = ind_o_mode; //TODO: opacity change + //TIZEN_ONLY(20160615): Sending signal to edje with indiecator type + DBG("[INDICATOR]The opacity mode of indicator was changed:(%d->%d) rot=%d", sd->ind_o_mode, ind_o_mode, sd->rot); + if (ind_o_mode == ELM_WIN_INDICATOR_TRANSLUCENT) + elm_object_signal_emit(conformant, "elm,state,indicator,translucent", "elm"); + else if (ind_o_mode == ELM_WIN_INDICATOR_TRANSPARENT) + elm_object_signal_emit(conformant, "elm,state,indicator,transparent", "elm"); + else if (ind_o_mode == ELM_WIN_INDICATOR_BG_TRANSPARENT) + elm_object_signal_emit(conformant, "elm,state,indicator,bg_transparent", "elm"); + else + elm_object_signal_emit(conformant, "elm,state,indicator,opaque", "elm"); + ///////////////////////////////////////////////////////////////////////////// } static Eina_Bool diff --git a/src/lib/elm_win.eo b/src/lib/elm_win.eo index d17a555..4139d78 100644 --- a/src/lib/elm_win.eo +++ b/src/lib/elm_win.eo @@ -116,7 +116,8 @@ enum Elm.Win.Indicator_Opacity_Mode opacity_unknown, [[Unknown indicator opacity mode]] opaque, [[Opacifies the indicator]] translucent, [[Be translucent the indicator]] - transparent [[Transparentizes the indicator]] + transparent, [[Transparentizes the indicator]] + bg_transparent, [[Bg Transparentizes the indicator]] } /** -- 2.7.4