UI: remove popover button text in viewport header
authorWilliam Reynish <billreynish>
Sat, 13 Apr 2019 10:14:12 +0000 (12:14 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 13 Apr 2019 10:19:56 +0000 (12:19 +0200)
Makes room in the header for other buttons to be added.

release/scripts/startup/bl_ui/space_view3d.py

index 5423eb7..f2ed792 100644 (file)
@@ -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):