diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index b251a3a77c0..1e551edee28 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -3431,12 +3431,15 @@ class WM_MT_splash(Menu): col2_title.label(text="Getting Started") col2.operator("wm.url_open_preset", text="Manual", icon='URL').type = 'MANUAL' - col2.operator("wm.url_open", text="Tutorials", icon='URL').url = "https://www.blender.org/tutorials/" col2.operator("wm.url_open", text="Support", icon='URL').url = "https://www.blender.org/support/" col2.operator("wm.url_open", text="User Communities", icon='URL').url = "https://www.blender.org/community/" + col2.operator("wm.url_open", text="Get Involved", icon='URL').url = "https://www.blender.org/get-involved/" col2.operator("wm.url_open_preset", text="Blender Website", icon='URL').type = 'BLENDER' - layout.separator() + col_sep = layout.column() + col_sep.separator() + col_sep.separator(type='LINE') + col_sep.separator() split = layout.split() @@ -3448,8 +3451,8 @@ class WM_MT_splash(Menu): col2 = split.column() - col2.operator("wm.url_open_preset", text="Donate", icon='FUND').type = 'FUND' col2.operator("wm.url_open_preset", text="What's New", icon='URL').type = 'RELEASE_NOTES' + col2.operator("wm.url_open_preset", text="Donate to Blender", icon='FUND').type = 'FUND' layout.separator() diff --git a/scripts/startup/bl_ui/space_topbar.py b/scripts/startup/bl_ui/space_topbar.py index 208d13a0354..d6d72518819 100644 --- a/scripts/startup/bl_ui/space_topbar.py +++ b/scripts/startup/bl_ui/space_topbar.py @@ -241,34 +241,43 @@ class TOPBAR_MT_file_new(Menu): # Limit number of templates in splash screen, spill over into more menu. paths = TOPBAR_MT_file_new.app_template_paths() - splash_limit = 5 + splash_limit = 6 if use_splash: - icon = 'FILE_NEW' show_more = len(paths) > (splash_limit - 1) if show_more: paths = paths[:splash_limit - 2] elif use_more: - icon = 'FILE_NEW' paths = paths[splash_limit - 2:] show_more = False else: - icon = 'NONE' show_more = False # Draw application templates. if not use_more: - props = layout.operator("wm.read_homefile", text="General", icon=icon) + props = layout.operator("wm.read_homefile", text="General", icon='FILE_NEW') props.app_template = "" for d in paths: + icon = 'FILE_NEW' + # Set icon per template. + if d == "2D_Animation": + icon = 'GREASEPENCIL_LAYER_GROUP' + elif d == "Sculpting": + icon = 'SCULPTMODE_HLT' + elif d == "Storyboarding": + icon = 'GREASEPENCIL' + elif d == "VFX": + icon = 'TRACKER' + elif d == "Video_Editing": + icon = 'SEQUENCE' props = layout.operator("wm.read_homefile", text=bpy.path.display_name(iface_(d)), icon=icon) props.app_template = d layout.operator_context = 'EXEC_DEFAULT' if show_more: - layout.menu("TOPBAR_MT_templates_more", text="...") + layout.menu("TOPBAR_MT_templates_more", text="More...") def draw(self, context): TOPBAR_MT_file_new.draw_ex(self.layout, context) diff --git a/source/blender/makesrna/intern/rna_ui_api.cc b/source/blender/makesrna/intern/rna_ui_api.cc index da1afdc5ff7..f4922a797b0 100644 --- a/source/blender/makesrna/intern/rna_ui_api.cc +++ b/source/blender/makesrna/intern/rna_ui_api.cc @@ -2225,7 +2225,7 @@ void RNA_api_ui_layout(StructRNA *srna) func = RNA_def_function(srna, "template_recent_files", "uiTemplateRecentFiles"); RNA_def_function_ui_description(func, "Show list of recently saved .blend files"); - RNA_def_int(func, "rows", 5, 1, INT_MAX, "", "Maximum number of items to show", 1, INT_MAX); + RNA_def_int(func, "rows", 6, 1, INT_MAX, "", "Maximum number of items to show", 1, INT_MAX); parm = RNA_def_int(func, "found", 0, 0, INT_MAX, "", "Number of items drawn", 0, INT_MAX); RNA_def_function_return(func, parm);