Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-02 20:04:38 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-08 20:46:00 +0300
commitcf8e71db615c2d74bf87f18ab8389a675cbe6c51 (patch)
tree9f29f386985d521b4e28d644e4cd6e6d7e53015d /release
parent2ac65f6153a2da2df7cda908689bb7c1865f088d (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/datafiles/userdef/userdef_default_theme.c5
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py24
2 files changed, 29 insertions, 0 deletions
diff --git a/release/datafiles/userdef/userdef_default_theme.c b/release/datafiles/userdef/userdef_default_theme.c
index 82cf7e86807..0a5ac909c31 100644
--- a/release/datafiles/userdef/userdef_default_theme.c
+++ b/release/datafiles/userdef/userdef_default_theme.c
@@ -244,6 +244,11 @@ const bTheme U_theme_default = {
.gizmo_secondary = RGBA(0x63ffffff),
.gizmo_a = RGBA(0x4da84dff),
.gizmo_b = RGBA(0xa33535ff),
+ .icon_collection = RGBA(0xccccccff),
+ .icon_object = RGBA(0xcc986eff),
+ .icon_object_data = RGBA(0x98cc98ff),
+ .icon_modifier = RGBA(0x6e98ccff),
+ .icon_shading = RGBA(0xcc6e6eff),
},
.tbuts = {
.back = RGBA(0x42424200),
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 978212956aa..ce52e8cb837 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -819,6 +819,30 @@ class USERPREF_PT_theme(Panel):
col.separator()
col.separator()
+
+ col.label(text="Icon Colors:")
+
+ row = col.row()
+
+ subsplit = row.split(factor=0.95)
+
+ padding = subsplit.split(factor=0.15)
+ colsub = padding.column()
+ colsub = padding.column()
+ colsub.row().prop(ui, "icon_collection")
+ colsub.row().prop(ui, "icon_object")
+ colsub.row().prop(ui, "icon_object_data")
+
+ subsplit = row.split(factor=0.85)
+
+ padding = subsplit.split(factor=0.15)
+ colsub = padding.column()
+ colsub = padding.column()
+ colsub.row().prop(ui, "icon_modifier")
+ colsub.row().prop(ui, "icon_shading")
+
+ col.separator()
+ col.separator()
elif theme.theme_area == 'BONE_COLOR_SETS':
col = split.column()