Make minicontrol be transparent 94/31594/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 17 Apr 2014 12:36:35 +0000 (21:36 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Sat, 6 Dec 2014 13:42:36 +0000 (22:42 +0900)
Change-Id: Ib0c2078e0752de364c449c2a261bb528187fbc45

ism/data/pixmaps/isf_minicontrol.edc
ism/extras/efl_panel/minicontrol.cpp

index b934af7b7391090e25d9dd3cd9b5d90aefd3052f..72faa3258e016b4d234da8d52e7f1b01b75f79b1 100644 (file)
@@ -1,4 +1,4 @@
-#define MC_BG_COLOR             0 0 0 255
+#define MC_BG_COLOR             0 0 0 0
 
 #define MC_TITLE_TEXT_FONT      "Tizen:style=Regular"
 #define MC_TITLE_TEXT_CLASS     "tizen"
index 4ce23704284070c1749cf12fbb0e7228be121c2a..a1bd8d189bddcfa0dd271e593ac81fc9fe369a1e 100644 (file)
@@ -56,21 +56,14 @@ MiniControl::create (const char *name, const char *file, int angle)
         return false;
     }
 
+    elm_win_alpha_set (win, EINA_TRUE);
+
     double scale = elm_config_scale_get ();
     if (angle == 90 || angle == 270)
         evas_object_resize (win, MINI_CONTROLLER_WIDTH_LANDSCAPE * scale, MINI_CONTROLLER_HEIGHT * scale);
     else
         evas_object_resize (win, MINI_CONTROLLER_WIDTH * scale, MINI_CONTROLLER_HEIGHT * scale);
 
-    /* create bg */
-    Evas_Object *bg;
-    bg = elm_bg_add (win);
-    evas_object_size_hint_weight_set (bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-    evas_object_size_hint_align_set (bg, EVAS_HINT_FILL, EVAS_HINT_FILL);
-    elm_win_resize_object_add (win, bg);
-    elm_bg_color_set (bg, 0, 0, 0);
-    evas_object_show (bg);
-
     /* load layout */
     layout = elm_layout_add (win);
     elm_layout_file_set (layout, file , "mini_controller");