forked from enlightenment/edi
theme: fix small bug and change label.
This commit is contained in:
parent
76ba36ea98
commit
27e1b6c5fe
|
@ -24,19 +24,17 @@ edi_theme_window_alpha_set(void)
|
|||
win = edi_main_win_get();
|
||||
|
||||
elm_win_alpha_set(win, enabled);
|
||||
efl_gfx_color_set(efl_part(win, "background"), 64, 64, 64, _edi_project_config->gui.alpha);
|
||||
|
||||
if (enabled)
|
||||
efl_gfx_color_set(efl_part(win, "background"), 64, 64, 64, _edi_project_config->gui.alpha);
|
||||
else
|
||||
efl_gfx_color_set(efl_part(win, "background"), 64, 64, 64, 255);
|
||||
}
|
||||
|
||||
void edi_theme_elm_code_alpha_set(Evas_Object *obj)
|
||||
{
|
||||
edi_theme_window_alpha_set();
|
||||
|
||||
if (_edi_project_config->gui.translucent)
|
||||
evas_object_color_set(obj, 255, 255, 255, 1);
|
||||
else
|
||||
evas_object_color_set(obj, 255, 255, 255, 255);
|
||||
|
||||
edi_theme_window_alpha_set();
|
||||
if (_edi_project_config->gui.translucent)
|
||||
elm_code_widget_alpha_set(obj, _edi_project_config->gui.alpha);
|
||||
else
|
||||
|
|
|
@ -58,7 +58,6 @@ Eina_List *edi_theme_themes_get(void);
|
|||
Edi_Theme *edi_theme_theme_by_name(const char *name);
|
||||
|
||||
void edi_theme_window_alpha_set(void);
|
||||
|
||||
void edi_theme_elm_code_alpha_set(Evas_Object *obj);
|
||||
/**
|
||||
* @}
|
||||
|
|
|
@ -283,7 +283,7 @@ _edi_settings_display_create(Evas_Object *parent)
|
|||
_edi_settings_translucent_state_cb, slider);
|
||||
|
||||
label = elm_label_add(table);
|
||||
elm_object_text_set(label, _("Shine"));
|
||||
elm_object_text_set(label, _("Alpha"));
|
||||
evas_object_size_hint_align_set(label, EVAS_HINT_EXPAND, 0.5);
|
||||
elm_table_pack(table, label, 0, 3, 1, 1);
|
||||
evas_object_show(label);
|
||||
|
|
Loading…
Reference in New Issue