void init_engine(window_settings * ws) { private_fs * pfs; private_ws * pws; pws = g_malloc0(sizeof(private_ws)); ws->engine_ws = pws; pfs = g_malloc0(sizeof(private_fs)); ws->fs_act->engine_fs = pfs; ACOLOR(border, 0.0, 0.0, 0.0, 1.0); ACOLOR(title_bar, 0.0, 0.0, 0.0, 0.3); pfs = g_malloc0(sizeof(private_fs)); ws->fs_inact->engine_fs = pfs; ACOLOR(border, 0.0, 0.0, 0.0, 1.0); ACOLOR(title_bar, 0.0, 0.0, 0.0, 0.0); }
void init_engine(window_settings * ws) { private_fs * pfs; private_ws * pws; /* private window settings */ pws = g_malloc0(sizeof(private_ws)); ws->engine_ws = pws; pws->round_top_left = TRUE; pws->round_top_right = TRUE; pws->round_bottom_left = TRUE; pws->round_bottom_right = TRUE; pws->corner_radius = 5.0; /* private frame settings for active frames */ pfs = g_malloc0(sizeof(private_fs)); ws->fs_act->engine_fs = pfs; ACOLOR(inner, 0.8, 0.8, 0.8, 0.5); ACOLOR(outer, 0.8, 0.8, 0.8, 0.5); ACOLOR(title_inner, 0.8, 0.8, 0.8, 0.8); ACOLOR(title_outer, 0.8, 0.8, 0.8, 0.8); ACOLOR(window_highlight, 1.0, 1.0, 1.0, 0.8); ACOLOR(window_shadow, 0.6, 0.6, 0.6, 0.8); ACOLOR(window_halo, 0.8, 0.8, 0.8, 0.8); ACOLOR(separator_line, 0.0, 0.0, 0.0, 0.0); ACOLOR(contents_highlight, 1.0, 1.0, 1.0, 0.8); ACOLOR(contents_shadow, 0.6, 0.6, 0.6, 0.8); ACOLOR(contents_halo, 0.8, 0.8, 0.8, 0.8); /* private frame settings for inactive frames */ pfs = g_malloc0(sizeof(private_fs)); ws->fs_inact->engine_fs = pfs; ACOLOR(inner, 0.8, 0.8, 0.8, 0.3); ACOLOR(outer, 0.8, 0.8, 0.8, 0.3); ACOLOR(title_inner, 0.8, 0.8, 0.8, 0.6); ACOLOR(title_outer, 0.8, 0.8, 0.8, 0.6); ACOLOR(window_highlight, 1.0, 1.0, 1.0, 0.7); ACOLOR(window_shadow, 0.6, 0.6, 0.6, 0.7); ACOLOR(window_halo, 0.8, 0.8, 0.8, 0.7); ACOLOR(separator_line, 0.0, 0.0, 0.0, 0.0); ACOLOR(contents_highlight, 1.0, 1.0, 1.0, 0.8); ACOLOR(contents_shadow, 0.6, 0.6, 0.6, 0.8); ACOLOR(contents_halo, 0.8, 0.8, 0.8, 0.8); }