From cf8e71db615c2d74bf87f18ab8389a675cbe6c51 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 2 Oct 2018 19:04:38 +0200 Subject: UI: add icon color coding for different data types in the outliner. For now we have categories collection, object, object data, modifiers & constraints, and shading. The icons can be categorized by adding e.g. DEF_ICON_OBJECT() in UI_icons.h. Light themes will need to be updated to use darker colors to keep icons visible in the outliner. --- source/blender/blenloader/intern/versioning_userdef.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index cf5087b848b..b04acf6016c 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -57,6 +57,14 @@ static void do_versions_theme(UserDef *userdef, bTheme *btheme) copy_v4_v4_char(btheme->tnla.anim_preview_range, btheme->tnla.anim_active); copy_v4_v4_char(btheme->tipo.anim_preview_range, btheme->tact.anim_active); } + + if (!USER_VERSION_ATLEAST(280, 26)) { + copy_v4_v4_char(btheme->tui.icon_collection, U_theme_default.tui.icon_collection); + copy_v4_v4_char(btheme->tui.icon_object, U_theme_default.tui.icon_object); + copy_v4_v4_char(btheme->tui.icon_object_data, U_theme_default.tui.icon_object_data); + copy_v4_v4_char(btheme->tui.icon_modifier, U_theme_default.tui.icon_modifier); + copy_v4_v4_char(btheme->tui.icon_shading, U_theme_default.tui.icon_shading); + } #undef USER_VERSION_ATLEAST } -- cgit v1.2.3