elm_conform: apply Tizen 2.4 feature 84/74884/2
authorHosang Kim <hosang12.kim@samsung.com>
Thu, 16 Jun 2016 04:03:46 +0000 (13:03 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 17 Jun 2016 00:40:21 +0000 (17:40 -0700)
Added Indicator opacity modes.

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
Change-Id: I69b36f9818e7071d86423b7b8a995778f4f6a674

src/lib/elm_conform.c
src/lib/elm_win.eo

index f5cdcc2..a948c17 100644 (file)
@@ -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
index d17a555..4139d78 100644 (file)
@@ -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]]
 }
 
 /**