diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2020-07-18 17:49:25 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2020-07-18 17:49:25 +0300 |
commit | c08d847488048e9d5233bfd14e363de574332846 (patch) | |
tree | 59cd059ab1d146db2cebd8051319009adfcd5ea4 /release/scripts/startup/bl_ui/space_statusbar.py | |
parent | fe49e4139cd3f78f126b60ea4240a0294eac9483 (diff) |
UI: Status Bar Statistics and Other Options
Status Bar can show scene statistics, memory usage, version, etc set by context menu. Part two of T75672.
Differential Revision: https://developer.blender.org/D7557
Reviewed by Julian Eisel
Diffstat (limited to 'release/scripts/startup/bl_ui/space_statusbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_statusbar.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/space_statusbar.py b/release/scripts/startup/bl_ui/space_statusbar.py index 4984372eed3..cbf72a7bc59 100644 --- a/release/scripts/startup/bl_ui/space_statusbar.py +++ b/release/scripts/startup/bl_ui/space_statusbar.py @@ -31,17 +31,20 @@ class STATUSBAR_HT_header(Header): layout.separator_spacer() - # messages - layout.template_reports_banner() - layout.template_running_jobs() - + # Nothing in the center. layout.separator_spacer() - # stats - scene = context.scene - view_layer = context.view_layer + row = layout.row() + row.alignment = 'RIGHT' + + # Stats & Info + row.label(text=context.screen.statusbar_info(), translate=False) + + # Messages + row.template_reports_banner() - layout.label(text=scene.statistics(view_layer), translate=False) + # Progress Bar + row.template_running_jobs() classes = ( |