removed test code
This commit is contained in:
parent
9c13fbafea
commit
ca5ec8c2a4
77
demo/demo.c
77
demo/demo.c
@ -2480,83 +2480,6 @@ run_demo(struct demo *gui)
|
||||
#ifdef __unix__
|
||||
file_browser_init(&filex, &gui->icons);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
style->text.color = zr_rgb(255,255,255);
|
||||
style->text.padding = zr_vec2(0,0);
|
||||
|
||||
style->option.normal = zr_style_item_image(gui->icons.option);
|
||||
style->option.hover = zr_style_item_image(gui->icons.option);
|
||||
style->option.active = zr_style_item_image(gui->icons.option);
|
||||
style->option.cursor_normal = zr_style_item_image(gui->icons.dot);
|
||||
style->option.cursor_hover = zr_style_item_image(gui->icons.dot);
|
||||
style->option.text_background = zr_rgba(0,0,0,0);
|
||||
style->option.text_normal = zr_rgb(18,34,39);
|
||||
style->option.text_hover = zr_rgb(18,34,39);
|
||||
style->option.text_active = zr_rgb(18,34,39);
|
||||
|
||||
style->checkbox.normal = zr_style_item_image(gui->icons.checkbox);
|
||||
style->checkbox.hover = zr_style_item_image(gui->icons.checkbox);
|
||||
style->checkbox.active = zr_style_item_image(gui->icons.checkbox);
|
||||
style->checkbox.cursor_normal = zr_style_item_image(gui->icons.check);
|
||||
style->checkbox.cursor_hover = zr_style_item_image(gui->icons.check);
|
||||
style->checkbox.text_background = zr_rgba(0,0,0,0);
|
||||
style->checkbox.text_normal = zr_rgb(255,255,255);
|
||||
style->checkbox.text_hover = zr_rgb(255,255,255);
|
||||
style->checkbox.text_active = zr_rgb(255,255,255);
|
||||
|
||||
style->progress.normal = zr_style_item_image(gui->icons.progress);
|
||||
style->progress.hover = zr_style_item_image(gui->icons.progress);
|
||||
style->progress.active = zr_style_item_image(gui->icons.progress);
|
||||
style->progress.cursor_normal = zr_style_item_image(gui->icons.bar);
|
||||
style->progress.cursor_hover = zr_style_item_image(gui->icons.bar);
|
||||
style->progress.cursor_active = zr_style_item_image(gui->icons.bar);
|
||||
style->progress.padding = zr_vec2(10,10);
|
||||
|
||||
/* slider */
|
||||
style->slider.normal = zr_style_item_image(gui->icons.slider);
|
||||
style->slider.hover = zr_style_item_image(gui->icons.slider);
|
||||
style->slider.active = zr_style_item_image(gui->icons.slider);
|
||||
style->slider.bar_normal = zr_rgba(0,0,0,0);
|
||||
style->slider.bar_hover = zr_rgba(0,0,0,0);
|
||||
style->slider.bar_active = zr_rgba(0,0,0,0);
|
||||
style->slider.bar_filled = zr_rgba(0,0,0,0);
|
||||
style->slider.cursor_normal = zr_style_item_image(gui->icons.cursor);
|
||||
style->slider.cursor_hover = zr_style_item_image(gui->icons.cursor);
|
||||
style->slider.cursor_active = zr_style_item_image(gui->icons.cursor);;
|
||||
style->slider.inc_symbol = ZR_SYMBOL_NONE;
|
||||
style->slider.dec_symbol = ZR_SYMBOL_NONE;
|
||||
style->slider.cursor_size = zr_vec2(30,30);
|
||||
style->slider.spacing = zr_vec2(16, 0);
|
||||
style->slider.show_buttons = zr_true;
|
||||
style->slider.bar_height = 0;
|
||||
|
||||
/* slider buttons */
|
||||
style->slider.inc_button.normal = zr_style_item_image(gui->icons.right);
|
||||
style->slider.inc_button.hover = zr_style_item_image(gui->icons.right);
|
||||
style->slider.inc_button.active = zr_style_item_image(gui->icons.right);
|
||||
style->slider.inc_button.padding = zr_vec2(0.0f,0.0f);
|
||||
|
||||
style->slider.dec_button.normal = zr_style_item_image(gui->icons.left);
|
||||
style->slider.dec_button.hover = zr_style_item_image(gui->icons.left);
|
||||
style->slider.dec_button.active = zr_style_item_image(gui->icons.left);
|
||||
style->slider.dec_button.padding = zr_vec2(0.0f,0.0f);
|
||||
|
||||
/* window */
|
||||
style->window.header.normal = zr_style_item_image(gui->icons.header);
|
||||
style->window.header.hover = zr_style_item_image(gui->icons.header);
|
||||
style->window.header.active = zr_style_item_image(gui->icons.header);
|
||||
style->window.header.label_normal = zr_rgb(73,40,17);
|
||||
style->window.header.label_hover = zr_rgb(73,40,17);
|
||||
style->window.header.label_active = zr_rgb(73,40,17);
|
||||
style->window.header.label_padding = zr_vec2(4,8);
|
||||
style->window.header.padding = zr_vec2(60,10);
|
||||
|
||||
style->window.background = zr_rgb(18,39,34);
|
||||
style->window.fixed_background = zr_style_item_image(gui->icons.window);
|
||||
style->window.border_color = zr_rgba(104,120,115,255);
|
||||
style->window.padding = zr_vec2(16,8);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user