diff options
Diffstat (limited to 'src/lib/elementary/elm_code_widget.c')
-rw-r--r-- | src/lib/elementary/elm_code_widget.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 927ebc9941..658d975024 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c | |||
@@ -2203,19 +2203,13 @@ _elm_code_widget_elm_widget_theme_apply(Eo *obj, Elm_Code_Widget_Data *pd) | |||
2203 | int r, g, b, a; | 2203 | int r, g, b, a; |
2204 | double fade; | 2204 | double fade; |
2205 | unsigned int i; | 2205 | unsigned int i; |
2206 | Evas_Object *grid, *background; | 2206 | Evas_Object *grid; |
2207 | 2207 | ||
2208 | edje = elm_layout_edje_get(obj); | 2208 | edje = elm_layout_edje_get(obj); |
2209 | edje_object_color_class_get(edje, "elm/code/status/default", &r, &g, &b, &a, | 2209 | edje_object_color_class_get(edje, "elm/code/status/default", &r, &g, &b, &a, |
2210 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); | 2210 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); |
2211 | 2211 | ||
2212 | fade = (double) pd->alpha / 255; | 2212 | fade = (double) pd->alpha / 255; |
2213 | background = elm_object_part_content_get(pd->scroller, "elm.swallow.background"); | ||
2214 | evas_object_color_set(background, r * fade, g * fade, b * fade, a * fade); | ||
2215 | |||
2216 | if (fade < 1.0) | ||
2217 | evas_object_color_set(obj, 1, 1, 1, 1); // setting 0 alpha is not working | ||
2218 | |||
2219 | for (i = 0; i < eina_list_count(pd->grids); i++) | 2213 | for (i = 0; i < eina_list_count(pd->grids); i++) |
2220 | { | 2214 | { |
2221 | grid = eina_list_nth(pd->grids, i); | 2215 | grid = eina_list_nth(pd->grids, i); |
@@ -2242,7 +2236,7 @@ _elm_code_widget_alpha_set(Eo *obj, Elm_Code_Widget_Data *pd, int alpha) | |||
2242 | EOLIAN static void | 2236 | EOLIAN static void |
2243 | _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd) | 2237 | _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd) |
2244 | { | 2238 | { |
2245 | Evas_Object *background, *gridrows, *scroller; | 2239 | Evas_Object *gridrows, *scroller; |
2246 | const char *fontname, *fontsize; | 2240 | const char *fontname, *fontsize; |
2247 | 2241 | ||
2248 | efl_canvas_group_add(efl_super(obj, ELM_CODE_WIDGET_CLASS)); | 2242 | efl_canvas_group_add(efl_super(obj, ELM_CODE_WIDGET_CLASS)); |
@@ -2260,12 +2254,6 @@ _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd) | |||
2260 | elm_object_focus_allow_set(scroller, EINA_FALSE); | 2254 | elm_object_focus_allow_set(scroller, EINA_FALSE); |
2261 | pd->scroller = scroller; | 2255 | pd->scroller = scroller; |
2262 | 2256 | ||
2263 | background = elm_bg_add(scroller); | ||
2264 | evas_object_size_hint_weight_set(background, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); | ||
2265 | evas_object_size_hint_align_set(background, EVAS_HINT_FILL, EVAS_HINT_FILL); | ||
2266 | evas_object_show(background); | ||
2267 | elm_object_part_content_set(scroller, "elm.swallow.background", background); | ||
2268 | |||
2269 | fontname = edje_object_data_get(elm_layout_edje_get(obj), "font.name"); | 2257 | fontname = edje_object_data_get(elm_layout_edje_get(obj), "font.name"); |
2270 | fontsize = edje_object_data_get(elm_layout_edje_get(obj), "font.size"); | 2258 | fontsize = edje_object_data_get(elm_layout_edje_get(obj), "font.size"); |
2271 | if (fontname && fontsize) | 2259 | if (fontname && fontsize) |