Add presets.

Also fix some bugs.

Fix a crash and a minor bug
This commit is contained in:
MarianoGNU
2015-12-23 23:17:09 -03:00
parent 1f3d6824c8
commit ad2387f0be
5 changed files with 139 additions and 32 deletions
@@ -773,8 +773,9 @@ void make_default_theme() {
t->set_constant("color_width","ColorPicker", 100);
t->set_constant("label_width","ColorPicker", 20);
t->set_constant("hseparator","ColorPicker", 4);
t->set_icon("screen_picker","ColorPicker", make_icon( icon_color_pick_png ) );
t->set_icon("add_preset","ColorPicker", make_icon( icon_add_png ) );
t->set_shader("uv_editor", "ColorPicker", make_shader("", uv_editor_shader_code, ""));
t->set_shader("w_editor", "ColorPicker", make_shader("", w_editor_shader_code, ""));