Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-18 18:44:14 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-18 20:38:20 +0300
commitb49abbec5fff29978d04572b9ac341c8a50b84cf (patch)
tree813371ef029e1b06f7ff57406f5629e385030e28 /release/scripts/startup/bl_ui/space_userpref.py
parent1c815e0826518adc69bc3888e18f52991e8774f7 (diff)
Splash: add first time setup and templates to splash screen.
The first time setup screen only has the interaction preset currently, some more work is needed to be able to set e.g. the language or compute device here as in the mockups. The splash screen stayed the same for now, to make room for the templates most of the links are now in the Help menu. If there are no recent files yet the links still show. The splash screen buttons implementation was fully moved to Python, in the WM_MT_splash menu.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py47
1 files changed, 0 insertions, 47 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index b1604489605..dc8242c477c 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -81,14 +81,6 @@ class USERPREF_MT_interaction_presets(Menu):
draw = Menu.draw_preset
-class USERPREF_MT_templates_splash(Menu):
- bl_label = "Startup Templates"
- preset_subdir = "templates"
-
- def draw(self, context):
- bpy.types.TOPBAR_MT_file_new.draw_ex(self, context, use_splash=True, use_default=True)
-
-
class USERPREF_MT_appconfigs(Menu):
bl_label = "AppPresets"
preset_subdir = "keyconfig"
@@ -101,42 +93,6 @@ class USERPREF_MT_appconfigs(Menu):
Menu.draw_preset(self, context)
-class USERPREF_MT_splash(Menu):
- bl_label = "Splash"
-
- def draw(self, context):
- layout = self.layout
-
- split = layout.split()
- row = split.row()
-
- if any(bpy.utils.app_template_paths()):
- row.label(text="Template:")
- template = context.user_preferences.app_template
- row.menu(
- "USERPREF_MT_templates_splash",
- text=bpy.path.display_name(template) if template else "Default",
- )
- else:
- row.label(text="")
-
- row = split.row()
- row.label(text="Interaction:")
-
- text = bpy.path.display_name(context.window_manager.keyconfigs.active.name)
- if not text:
- text = "Blender (default)"
- row.menu("USERPREF_MT_appconfigs", text=text)
-
-
-# only for addons
-class USERPREF_MT_splash_footer(Menu):
- bl_label = ""
-
- def draw(self, context):
- pass
-
-
class USERPREF_PT_interface(Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Interface"
@@ -1601,10 +1557,7 @@ classes = (
USERPREF_HT_header,
USERPREF_PT_tabs,
USERPREF_MT_interaction_presets,
- USERPREF_MT_templates_splash,
USERPREF_MT_appconfigs,
- USERPREF_MT_splash,
- USERPREF_MT_splash_footer,
USERPREF_PT_interface,
USERPREF_PT_edit,
USERPREF_PT_system,