[Bf-blender-cvs] [a33034cc3fd] blender2.8: UI: move messages and running jobs to top bar.

Brecht Van Lommel noreply at git.blender.org
Fri Sep 28 11:07:18 CEST 2018


Commit: a33034cc3fd17802ffdd3e87e9958f5539f67bbb
Author: Brecht Van Lommel
Date:   Fri Sep 28 11:05:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa33034cc3fd17802ffdd3e87e9958f5539f67bbb

UI: move messages and running jobs to top bar.

It's too easy to miss at the bottom of the screen, and if the status bar is
collapsed critical messages may not be seen at all. There might be a better
looking solution, but for now this solves the main usability problem.

===================================================================

M	release/scripts/startup/bl_ui/space_statusbar.py
M	release/scripts/startup/bl_ui/space_topbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_statusbar.py b/release/scripts/startup/bl_ui/space_statusbar.py
index 2cc5bd94bd7..3f4e8879645 100644
--- a/release/scripts/startup/bl_ui/space_statusbar.py
+++ b/release/scripts/startup/bl_ui/space_statusbar.py
@@ -32,25 +32,6 @@ class STATUSBAR_HT_header(Header):
 
         layout.separator_spacer()
 
-        # messages
-        layout.template_reports_banner()
-
-        row = layout.row(align=True)
-        if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False:
-            row.label(text="Auto-run disabled", icon='ERROR')
-            if bpy.data.is_saved:
-                props = row.operator("wm.revert_mainfile", icon='SCREEN_BACK', text="Reload Trusted")
-                props.use_scripts = True
-
-            row.operator("script.autoexec_warn_clear", text="Ignore")
-
-            # include last so text doesn't push buttons out of the header
-            row.label(text=bpy.app.autoexec_fail_message)
-
-        layout.template_running_jobs()
-
-        layout.separator_spacer()
-
         # stats
         scene = context.scene
         view_layer = context.view_layer
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index ffe30cd0952..5c2314d131c 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -66,6 +66,23 @@ class TOPBAR_HT_upper_bar(Header):
         window = context.window
         scene = window.scene
 
+        # messages
+        layout.template_reports_banner()
+
+        row = layout.row(align=True)
+        if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False:
+            row.label(text="Auto-run disabled", icon='ERROR')
+            if bpy.data.is_saved:
+                props = row.operator("wm.revert_mainfile", icon='SCREEN_BACK', text="Reload Trusted")
+                props.use_scripts = True
+
+            row.operator("script.autoexec_warn_clear", text="Ignore")
+
+            # include last so text doesn't push buttons out of the header
+            row.label(text=bpy.app.autoexec_fail_message)
+
+        layout.template_running_jobs()
+
         # Active workspace view-layer is retrieved through window, not through workspace.
         layout.template_ID(window, "scene", new="scene.new", unlink="scene.delete")



More information about the Bf-blender-cvs mailing list