UI: Splash: Adjust layout and add icons

Small layout and links adjustments to the splash screen.

- Extend list of templates to fit the new Storyboarding template.
- Extend the list of recent files by one row, so it matches templates.
- Add icons to templates.
- Rename `Donate` to `Donate to Blender`.
- Move donate link down so it's more prominent.
- Make separator visible.
- Add "Get Involved" link.
- Remove "Tutorials" link. The Support link already provides help, and
it's been a while since we no longer promote tutorials on blender.org.

See PR for details and screenshots.

Pull Request: https://projects.blender.org/blender/blender/pulls/146730
This commit is contained in:
Pablo Vazquez
2025-09-26 00:45:10 +02:00
committed by Pablo Vazquez
parent e91c8300a6
commit 06b13c8fb4
3 changed files with 22 additions and 10 deletions

View File

@@ -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()

View File

@@ -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)