From 54190dd8e5562cf5f964e6bb60be170c9063c616 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 14 Feb 2011 03:43:28 +0000 Subject: Bone Colour Sets (theme ones) can now be edited from the User Preferences UI again --- release/scripts/ui/space_userpref.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'release') diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 79bdff8ad93..33d56de1cee 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -635,7 +635,29 @@ class USERPREF_PT_theme(bpy.types.Panel): layout.separator() layout.separator() + elif theme.theme_area == 'COLOR_SETS': + col = split.column() + for i,ui in enumerate(theme.bone_color_sets): + col.label(text="Color Set %d:" % (i+1)) # i starts from 0 + + row = col.row() + + subsplit = row.split(percentage=0.95) + + padding = subsplit.split(percentage=0.15) + colsub = padding.column() + colsub = padding.column() + colsub.row().prop(ui, "normal") + colsub.row().prop(ui, "select") + colsub.row().prop(ui, "active") + + subsplit = row.split(percentage=0.85) + + padding = subsplit.split(percentage=0.15) + colsub = padding.column() + colsub = padding.column() + colsub.row().prop(ui, "show_colored_constraints") else: self._theme_generic(split, getattr(theme, theme.theme_area.lower())) -- cgit v1.2.3