mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:02:46 +00:00 
			
		
		
		
	Userland: Specify margins and spacing in the GUI::Layout constructor
This commit is contained in:
		
							parent
							
								
									9561ec15f4
								
							
						
					
					
						commit
						77ad0fdb07
					
				
					 64 changed files with 136 additions and 288 deletions
				
			
		|  | @ -18,8 +18,7 @@ SidebarWidget::SidebarWidget() | |||
|     auto& tab_bar = add<GUI::TabWidget>(); | ||||
| 
 | ||||
|     auto& outline_container = tab_bar.add_tab<GUI::Widget>("Outline"); | ||||
|     outline_container.set_layout<GUI::VerticalBoxLayout>(); | ||||
|     outline_container.layout()->set_margins(4); | ||||
|     outline_container.set_layout<GUI::VerticalBoxLayout>(4); | ||||
| 
 | ||||
|     m_outline_tree_view = outline_container.add<GUI::TreeView>(); | ||||
|     m_outline_tree_view->set_activates_on_selection(true); | ||||
|  | @ -34,8 +33,7 @@ SidebarWidget::SidebarWidget() | |||
|     }; | ||||
| 
 | ||||
|     auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails"); | ||||
|     thumbnails_container.set_layout<GUI::VerticalBoxLayout>(); | ||||
|     thumbnails_container.layout()->set_margins(4); | ||||
|     thumbnails_container.set_layout<GUI::VerticalBoxLayout>(4); | ||||
| 
 | ||||
|     // FIXME: Add thumbnail previews
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins