e_config: add configurations for qp_handler's transparency 93/155993/3
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 17 Oct 2017 02:03:01 +0000 (11:03 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 17 Oct 2017 03:52:36 +0000 (03:52 +0000)
Change-Id: Ia494c69c6118563097ba58d450c70eb0769fb75b

src/bin/e_config.c
src/bin/e_config.h
src/bin/services/e_service_quickpanel.c

index 31eb49a0bcfaec09369cc6dc8e05c34219addabd..5905dbfa820fbdcb2fa496d0ff3d9fb068b2b14b 100644 (file)
@@ -290,6 +290,8 @@ _e_config_edd_init(Eina_Bool old)
    E_CONFIG_VAL(D, T, use_pp_zoom, UCHAR);
    E_CONFIG_VAL(D, T, priority_control, UCHAR);
    E_CONFIG_VAL(D, T, comp_canvas_norender.use, UCHAR);
+   E_CONFIG_VAL(D, T, qp_handler.use_alpha, UCHAR);
+   E_CONFIG_VAL(D, T, qp_handler.alpha, INT);
 }
 
 static Eina_Bool
@@ -512,6 +514,8 @@ e_config_load(void)
    E_CONFIG_LIMIT(e_config->use_pp_zoom, 0, 1);
    E_CONFIG_LIMIT(e_config->priority_control, 0, 1);
    E_CONFIG_LIMIT(e_config->comp_canvas_norender.use, 0, 1);
+   E_CONFIG_LIMIT(e_config->qp_handler.use_alpha, 0, 1);
+   E_CONFIG_LIMIT(e_config->qp_handler.alpha, 0, 255);
 }
 
 E_API int
index ccfefcaedbab7d317a7896bbd6d9a7ac371c2253..ebd9b1397fad49e296f7337af503e2b4154bf42f 100644 (file)
@@ -207,6 +207,11 @@ struct _E_Config
    {
       unsigned char use; // boolean value for enabling evas_norender in idle (default : disable : 0)
    } comp_canvas_norender;
+   struct
+   {
+      unsigned char use_alpha; // boolean value for applying transparency to qp handler (default : disable : 0)
+      int           alpha; // alpha component (0:transparent, 255:opaque), only used when use_alpha is 1
+   } qp_handler;
 };
 
 struct _E_Config_Desklock_Background
index f128d05227c4b499c57fe31e314ce0d15cb112fd..09d2c878cf9276d7bfa48542795bd97ca8707fce 100644 (file)
@@ -192,7 +192,10 @@ _mover_intercept_show(void *data, Evas_Object *obj)
    e_layout_pack(md->qp_layout_obj, md->handler_clip);
    e_layout_child_move(md->handler_clip, md->handler_rect.x, md->handler_rect.y);
    e_layout_child_resize(md->handler_clip, md->handler_rect.w, md->handler_rect.h);
-   evas_object_color_set(md->handler_clip, 255, 255, 255, 255);
+   if (e_config->qp_handler.use_alpha)
+     evas_object_color_set(md->handler_clip, 255, 255, 255, e_config->qp_handler.alpha);
+   else
+     evas_object_color_set(md->handler_clip, 255, 255, 255, 255);
    evas_object_show(md->handler_clip);
    evas_object_clip_set(md->handler_mirror_obj, md->handler_clip);