Bone Colour Sets (theme ones) can now be edited from the User
Preferences UI again
This commit is contained in:
parent
0c2099086b
commit
54190dd8e5
@ -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()))
|
||||
|
||||
|
@ -1708,6 +1708,7 @@ static void rna_def_userdef_themes(BlenderRNA *brna)
|
||||
|
||||
static EnumPropertyItem active_theme_area[] = {
|
||||
{0, "USER_INTERFACE", ICON_UI, "User Interface", ""},
|
||||
{18, "COLOR_SETS", ICON_COLOR, "Bone Color Sets", ""},
|
||||
{1, "VIEW_3D", ICON_VIEW3D, "3D View", ""},
|
||||
{2, "TIMELINE", ICON_TIME, "Timeline", ""},
|
||||
{3, "GRAPH_EDITOR", ICON_IPO, "Graph Editor", ""},
|
||||
|
Loading…
Reference in New Issue
Block a user