Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 1,013 Lines • ▼ Show 20 Lines | def draw_centered(self, context, layout): | ||||
| flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) | flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) | ||||
| flow.prop(ui, "normal") | flow.prop(ui, "normal") | ||||
| flow.prop(ui, "select") | flow.prop(ui, "select") | ||||
| flow.prop(ui, "active") | flow.prop(ui, "active") | ||||
| flow.prop(ui, "show_colored_constraints") | flow.prop(ui, "show_colored_constraints") | ||||
| class USERPREF_PT_theme_collection_colors(ThemePanel, CenterAlignMixIn, Panel): | |||||
| bl_label = "Collection Colors" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| def draw_header(self, _context): | |||||
| layout = self.layout | |||||
| layout.label(icon='OUTLINER_COLLECTION') | |||||
| def draw_centered(self, context, layout): | |||||
| theme = context.preferences.themes[0] | |||||
| layout.use_property_split = True | |||||
| flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) | |||||
| for i, ui in enumerate(theme.collection_color, 1): | |||||
| flow.prop(ui, "color", text=iface_(f"Color {i:d}"), translate=False) | |||||
| # Base class for dynamically defined theme-space panels. | # Base class for dynamically defined theme-space panels. | ||||
| # This is not registered. | # This is not registered. | ||||
| class PreferenceThemeSpacePanel: | class PreferenceThemeSpacePanel: | ||||
| # not essential, hard-coded UI delimiters for the theme layout | # not essential, hard-coded UI delimiters for the theme layout | ||||
| ui_delimiters = { | ui_delimiters = { | ||||
| 'VIEW_3D': { | 'VIEW_3D': { | ||||
| ▲ Show 20 Lines • Show All 1,221 Lines • ▼ Show 20 Lines | classes = ( | ||||
| USERPREF_PT_theme, | USERPREF_PT_theme, | ||||
| USERPREF_PT_theme_interface_state, | USERPREF_PT_theme_interface_state, | ||||
| USERPREF_PT_theme_interface_styles, | USERPREF_PT_theme_interface_styles, | ||||
| USERPREF_PT_theme_interface_gizmos, | USERPREF_PT_theme_interface_gizmos, | ||||
| USERPREF_PT_theme_interface_transparent_checker, | USERPREF_PT_theme_interface_transparent_checker, | ||||
| USERPREF_PT_theme_interface_icons, | USERPREF_PT_theme_interface_icons, | ||||
| USERPREF_PT_theme_text_style, | USERPREF_PT_theme_text_style, | ||||
| USERPREF_PT_theme_bone_color_sets, | USERPREF_PT_theme_bone_color_sets, | ||||
| USERPREF_PT_theme_collection_colors, | |||||
| USERPREF_PT_file_paths_data, | USERPREF_PT_file_paths_data, | ||||
| USERPREF_PT_file_paths_render, | USERPREF_PT_file_paths_render, | ||||
| USERPREF_PT_file_paths_applications, | USERPREF_PT_file_paths_applications, | ||||
| USERPREF_PT_file_paths_development, | USERPREF_PT_file_paths_development, | ||||
| USERPREF_PT_saveload_blend, | USERPREF_PT_saveload_blend, | ||||
| USERPREF_PT_saveload_blend_autosave, | USERPREF_PT_saveload_blend_autosave, | ||||
| Show All 39 Lines | |||||