mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	 64ba41ea13
			
		
	
	
		64ba41ea13
		
	
	
	
	
		
			
			You can now set the "autosize" property on a GUI::Label and it will automatically update its width preference to fit the text.
		
			
				
	
	
		
			55 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::Widget {
 | |
|     fill_with_background_color: true
 | |
|     layout: @GUI::VerticalBoxLayout {
 | |
|         spacing: 2
 | |
|     }
 | |
| 
 | |
|     @GUI::ToolBarContainer {
 | |
|         @GUI::ToolBar {
 | |
|             name: "main_toolbar"
 | |
|         }
 | |
|         @GUI::ToolBar {
 | |
|             name: "location_toolbar"
 | |
|             visible: false
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 text: "Location: "
 | |
|                 autosize: true
 | |
|             }
 | |
| 
 | |
|             @GUI::TextBox {
 | |
|                 name: "location_textbox"
 | |
|                 vertical_size_policy: "Fixed"
 | |
|                 preferred_height: 22
 | |
|             }
 | |
|         }
 | |
|         @GUI::ToolBar {
 | |
|             name: "breadcrumb_toolbar"
 | |
| 
 | |
|             @GUI::BreadcrumbBar {
 | |
|                 name: "breadcrumb_bar"
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::HorizontalSplitter {
 | |
|         name: "splitter"
 | |
| 
 | |
|         @GUI::TreeView {
 | |
|             name: "tree_view"
 | |
|             horizontal_size_policy: "Fixed"
 | |
|             preferred_width: 175
 | |
|         }
 | |
| 
 | |
|     }
 | |
| 
 | |
|     @GUI::StatusBar {
 | |
|         name: "statusbar"
 | |
| 
 | |
|         @GUI::ProgressBar {
 | |
|             name: "progressbar"
 | |
|             text: "Generating thumbnails: "
 | |
|             visible: false
 | |
|         }
 | |
|     }
 | |
| }
 |