mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:22:45 +00:00 
			
		
		
		
	 6ee597369d
			
		
	
	
		6ee597369d
		
	
	
	
	
		
			
			Now that the GML formatter is both perserving comments and also mostly agrees to the existing GML style, it can be used to auto-format all the GML files in the system. This commit does not only contain the scripts for running the formatting on CI and the pre-commit hook, but also initially formats all the existing GML files so that the hook is successfull.
		
			
				
	
	
		
			65 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::Widget {
 | |
|     fill_with_background_color: true
 | |
|     layout: @GUI::VerticalBoxLayout {
 | |
|         margins: [4]
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         max_height: 32
 | |
|         layout: @GUI::HorizontalBoxLayout {
 | |
|             spacing: 16
 | |
|         }
 | |
| 
 | |
|         @GUI::ImageWidget {
 | |
|             name: "icon"
 | |
|         }
 | |
| 
 | |
|         @GUI::Label {
 | |
|             name: "info"
 | |
|             text: "Type the name of a program, folder, document,\nor website, and SerenityOS will open it for you."
 | |
|             text_alignment: "CenterLeft"
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         layout: @GUI::HorizontalBoxLayout {
 | |
|             margins: [4]
 | |
|         }
 | |
| 
 | |
|         @GUI::Label {
 | |
|             text: "Open:"
 | |
|             fixed_width: 50
 | |
|             text_alignment: "CenterLeft"
 | |
|         }
 | |
| 
 | |
|         @GUI::ComboBox {
 | |
|             name: "path"
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         layout: @GUI::HorizontalBoxLayout
 | |
| 
 | |
|         fixed_height: 22
 | |
|         // HACK: using an empty widget as a spacer
 | |
|         @GUI::Widget
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "ok_button"
 | |
|             text: "OK"
 | |
|             fixed_width: 80
 | |
|         }
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "cancel_button"
 | |
|             text: "Cancel"
 | |
|             fixed_width: 80
 | |
|         }
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "browse_button"
 | |
|             text: "Browse..."
 | |
|             fixed_width: 80
 | |
|         }
 | |
|     }
 | |
| }
 |