ticker: make background transparent 73/93673/3
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 25 Oct 2016 08:29:56 +0000 (10:29 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 28 Oct 2016 12:53:19 +0000 (05:53 -0700)
Set ticker background to match guideline requirements.

Change-Id: Ib5f48a38e45c07e934ef00532cd2c865008aa6fa

res/resource/color_classes.edc
res/resource/ticker.edc
src/ticker.c

index 5441840..b8f8f7b 100644 (file)
@@ -49,6 +49,10 @@ color_classes {
                color: 63 63 63 255;
        }
        color_class {
+               name: "AO008";
+               color: 0 0 0 25;
+       }
+       color_class {
                name: "ATO001";
                color: 255 255 255 255;
        }
index 978e412..e89cc19 100755 (executable)
@@ -67,7 +67,7 @@ collections
                                type: RECT;
                                description {
                                        state: "default" 0.0;
-                                       color: 0 0 0 255;
+                                       color_class: "AO008";
                                }
                        }
                        // Icon
index 1c556a4..fc82285 100644 (file)
@@ -598,12 +598,13 @@ static Evas_Object *_ticker_window_create(struct appdata *ad)
        win = elm_win_add(NULL, "ticker_win", ELM_WIN_NOTIFICATION);
        retv_if(!win, NULL);
 
-       elm_win_alpha_set(win, EINA_FALSE);
+       elm_win_alpha_set(win, EINA_TRUE);
        elm_win_title_set(win, "ticker_win");
        elm_win_borderless_set(win, EINA_TRUE);
        elm_win_autodel_set(win, EINA_TRUE);
        efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_DEFAULT);
        elm_win_prop_focus_skip_set(win, EINA_TRUE);
+       efl_util_set_window_opaque_state(win, 0);
 
        elm_win_aux_hint_add(win, "wm.policy.win.user.geometry", "1");
        evas_object_resize(win, ad->win.w, INDICATOR_HEIGHT);