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:
authorWilliam Reynish <billreynish>2019-04-13 13:14:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-13 13:19:56 +0300
commitf98b6ace5d4958eadf367baa89d1825560136640 (patch)
tree328986c916b052ef698f8705268a3c1d9d82d460
parent789d242fa7bdd4cb8435ddce178ec43a36067615 (diff)
UI: remove popover button text in viewport header
Makes room in the header for other buttons to be added.
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 5423eb7f5e0..f2ed7922b4f 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -275,7 +275,7 @@ class VIEW3D_HT_header(Header):
row.prop(overlay, "show_overlays", icon='OVERLAY', text="")
sub = row.row(align=True)
sub.active = overlay.show_overlays
- sub.popover(panel="VIEW3D_PT_overlay")
+ sub.popover(panel="VIEW3D_PT_overlay", text="")
row = layout.row()
row.active = (shading.type in {'WIREFRAME', 'SOLID'}) or object_mode in {'EDIT'}
@@ -292,7 +292,7 @@ class VIEW3D_HT_header(Header):
# show the shading popover which shows double-sided option.
# sub.enabled = shading.type != 'RENDERED'
- sub.popover(panel="VIEW3D_PT_shading")
+ sub.popover(panel="VIEW3D_PT_shading", text="")
class VIEW3D_MT_editor_menus(Menu):
@@ -4507,7 +4507,8 @@ class VIEW3D_PT_shading(Panel):
return context.scene.display.shading
def draw(self, context):
- pass
+ layout = self.layout
+ layout.label(text="Viewport Shading")
class VIEW3D_PT_shading_lighting(Panel):
@@ -4762,7 +4763,8 @@ class VIEW3D_PT_overlay(Panel):
bl_ui_units_x = 13
def draw(self, context):
- pass
+ layout = self.layout
+ layout.label(text="Viewport Overlays")
class VIEW3D_PT_overlay_gizmo(Panel):