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-04-21 11:06:12 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-21 13:41:20 +0300
commite89fefdc69d22b8d41871d163ce012b72ea13407 (patch)
treebb77e01470ced1ba332130586e0f8c9a62e33e39 /release
parent04fe5edba3d69aa13523488d0e50bfd515cf7891 (diff)
Topbar: visual tweaks
* Make bottom half of topbar a bit higher * Make tabs higher and put them closer together * Remove screen layouts dropdown, we'll have one layout per window * Hide action zones from topbar * Don't change topbar background color when activating
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 708be478301..396dee63d1c 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -46,6 +46,8 @@ class TOPBAR_HT_upper_bar(Header):
if not screen.show_fullscreen:
layout.template_ID_tabs(window, "workspace", new="workspace.workspace_add_menu", unlink="workspace.workspace_delete")
+ else:
+ layout.operator("screen.back_to_previous", icon='SCREEN_BACK', text="Back to Previous")
layout.separator()
@@ -71,8 +73,11 @@ class TOPBAR_HT_upper_bar(Header):
layout = self.layout
window = context.window
+ scene = window.scene
+ # Active workspace view-layer is retrieved through window, not through workspace.
layout.template_ID(window, "scene", new="scene.new", unlink="scene.delete")
+ layout.template_search(window, "view_layer", scene, "view_layers")
class TOPBAR_HT_lower_bar(Header):
@@ -103,17 +108,8 @@ class TOPBAR_HT_lower_bar(Header):
def draw_right(self, context):
layout = self.layout
- window = context.window
- workspace = context.workspace
- scene = context.scene
- screen = context.screen
-
- if screen.show_fullscreen:
- layout.operator("screen.back_to_previous", icon='SCREEN_BACK', text="Back to Previous")
- else:
- layout.template_search_preview(window, "screen", workspace, "screens", new="screen.new", unlink="screen.delete", rows=2, cols=6)
- # Active workspace view-layer is retrieved through window, not through workspace.
- layout.template_search(window, "view_layer", scene, "view_layers")
+ # Placeholder
+ layout.operator("ed.undo_history", text="...")
class TOPBAR_MT_editor_menus(Menu):