mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:52:45 +00:00 
			
		
		
		
	 dc3ee84aca
			
		
	
	
		dc3ee84aca
		
	
	
	
	
		
			
			This patch removes deprecated GML properties and manual sizing calculations in favor of the new UIDimensions, and registers more widgets in the FontEditor namespace to simplify widget setup.
		
			
				
	
	
		
			119 lines
		
	
	
	
		
			2.5 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			119 lines
		
	
	
	
		
			2.5 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::Widget {
 | |
|     layout: @GUI::HorizontalBoxLayout {
 | |
|         margins: [20]
 | |
|     }
 | |
| 
 | |
|     @GUI::GroupBox {
 | |
|         title: "Metadata"
 | |
|         fixed_width: 200
 | |
|         layout: @GUI::VerticalBoxLayout {
 | |
|             margins: [6]
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 fixed_width: 80
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 text: "Height:"
 | |
|             }
 | |
| 
 | |
|             @GUI::SpinBox {
 | |
|                 name: "height_spinbox"
 | |
|                 min: 1
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 fixed_width: 80
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 text: "Width:"
 | |
|             }
 | |
| 
 | |
|             @GUI::SpinBox {
 | |
|                 name: "width_spinbox"
 | |
|                 min: 1
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 fixed_width: 80
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 text: "Mean line:"
 | |
|             }
 | |
| 
 | |
|             @GUI::SpinBox {
 | |
|                 name: "mean_line_spinbox"
 | |
|                 min: 0
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 fixed_width: 80
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 text: "Baseline:"
 | |
|             }
 | |
| 
 | |
|             @GUI::SpinBox {
 | |
|                 name: "baseline_spinbox"
 | |
|                 min: 0
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @GUI::HorizontalSeparator {
 | |
|             fixed_height: 22
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 fixed_width: 80
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 text: "Spacing:"
 | |
|             }
 | |
| 
 | |
|             @GUI::SpinBox {
 | |
|                 name: "spacing_spinbox"
 | |
|                 min: 0
 | |
|                 max: 255
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|             @GUI::Widget {
 | |
|                 fixed_width: 80
 | |
|             }
 | |
| 
 | |
|             @GUI::CheckBox {
 | |
|                 name: "fixed_width_checkbox"
 | |
|                 text: "Fixed width"
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         layout: @GUI::VerticalBoxLayout {}
 | |
| 
 | |
|         @GUI::Layout::Spacer {}
 | |
| 
 | |
|         @FontEditor::GlyphPreviewWidget {
 | |
|             name: "glyph_preview_widget"
 | |
|             layout: @GUI::VerticalBoxLayout {}
 | |
|         }
 | |
| 
 | |
|         @GUI::Layout::Spacer {}
 | |
|     }
 | |
| }
 |