From 1d4f3e2a2663206e707b00145cf4f13710e2ccac Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Mon, 16 Nov 2020 13:54:05 -0700 Subject: [PATCH 1/2] Outliner: Collection icon color tweaks The icons originally chosen for the collection colors were selected during development and had a few issues with contrast in the light theme, and the gray color was not a good choice against the default gray backgrounds. The new colors are more readable in both default Blender themes. Gray was replaced with pink. Differential Revision: https://developer.blender.org/D9504 --- .../datafiles/userdef/userdef_default_theme.c | 16 ++++----- .../presets/interface_theme/blender_light.xml | 34 +++++++++++++++++++ .../blenloader/intern/versioning_userdef.c | 3 ++ 3 files changed, 45 insertions(+), 8 deletions(-) diff --git a/release/datafiles/userdef/userdef_default_theme.c b/release/datafiles/userdef/userdef_default_theme.c index 4d0442c8f75..bdbd8386856 100644 --- a/release/datafiles/userdef/userdef_default_theme.c +++ b/release/datafiles/userdef/userdef_default_theme.c @@ -1108,28 +1108,28 @@ const bTheme U_theme_default = { }, .collection_color = { { - .color = RGBA(0xe4312bff), + .color = RGBA(0xe2605bff), }, { - .color = RGBA(0xef7e42ff), + .color = RGBA(0xf1a355ff), }, { - .color = RGBA(0xe4dd52ff), + .color = RGBA(0xf1dc55ff), }, { - .color = RGBA(0x9ac546ff), + .color = RGBA(0x7bcc7bff), }, { - .color = RGBA(0x46bcc2ff), + .color = RGBA(0x5db6eaff), }, { - .color = RGBA(0x8b65dcff), + .color = RGBA(0x8d59daff), }, { - .color = RGBA(0x999999ff), + .color = RGBA(0xc673b8ff), }, { - .color = RGBA(0x06d4432ff), + .color = RGBA(0x7a5441ff), }, }, }; diff --git a/release/scripts/presets/interface_theme/blender_light.xml b/release/scripts/presets/interface_theme/blender_light.xml index a5671ee0fbe..7c9b769e806 100644 --- a/release/scripts/presets/interface_theme/blender_light.xml +++ b/release/scripts/presets/interface_theme/blender_light.xml @@ -1454,6 +1454,40 @@ > + + + + + + + + + + + + + + + + + + diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index 6b6d226bd90..f76fac23e96 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -257,6 +257,9 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme) */ { /* Keep this block, even when empty. */ + for (int i = 0; i < COLLECTION_COLOR_TOT; ++i) { + FROM_DEFAULT_V4_UCHAR(collection_color[i].color); + } } #undef FROM_DEFAULT_V4_UCHAR From 906ff7b8fea8ae077c3d3f39ae2c9a2be08b88e5 Mon Sep 17 00:00:00 2001 From: Nathan Craddock Date: Mon, 16 Nov 2020 09:47:24 -0700 Subject: [PATCH 2/2] Fix wrong collection icon in outliner popover This icon was missed in rB0633a89e1827 --- release/scripts/startup/bl_ui/space_outliner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py index c61b6218dda..47708db6854 100644 --- a/release/scripts/startup/bl_ui/space_outliner.py +++ b/release/scripts/startup/bl_ui/space_outliner.py @@ -370,7 +370,7 @@ class OUTLINER_PT_filter(Panel): col = layout.column(align=True) row = col.row() - row.label(icon='GROUP') + row.label(icon='OUTLINER_COLLECTION') row.prop(space, "use_filter_collection", text="Collections") row = col.row() row.label(icon='OBJECT_DATAMODE')