mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			126 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			126 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::Widget {
 | |
|     fill_with_background_color: true
 | |
|     layout: @GUI::VerticalBoxLayout {
 | |
|         margins: [4]
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         fill_with_background_color: true
 | |
|         fixed_height: 20
 | |
|         layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|         @GUI::Label {
 | |
|             text: "Title:"
 | |
|             text_alignment: "CenterLeft"
 | |
|             fixed_height: 14
 | |
|             font_weight: "Bold"
 | |
|         }
 | |
| 
 | |
|         @GUI::TextBox {
 | |
|             name: "event_title_textbox"
 | |
|             fixed_size: [310, 20]
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         fill_with_background_color: true
 | |
|         fixed_height: 25
 | |
|         layout: @GUI::HorizontalBoxLayout {
 | |
|             spacing: 4
 | |
|         }
 | |
| 
 | |
|         @GUI::Label {
 | |
|             text: "Start:"
 | |
|             text_alignment: "CenterLeft"
 | |
|             fixed_height: 14
 | |
|             font_weight: "Bold"
 | |
|         }
 | |
| 
 | |
|         @GUI::TextBox {
 | |
|             name: "start_date"
 | |
|             mode: "ReadOnly"
 | |
|             fixed_width: 80
 | |
|         }
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "pick_start_date"
 | |
|             fixed_width: 20
 | |
|         }
 | |
| 
 | |
|         @GUI::SpinBox {
 | |
|             name: "start_hour"
 | |
|             fixed_size: [50, 20]
 | |
|             min: 1
 | |
|             max: 24
 | |
|         }
 | |
| 
 | |
|         @GUI::SpinBox {
 | |
|             name: "start_minute"
 | |
|             fixed_size: [40, 20]
 | |
|             min: 0
 | |
|             max: 59
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         fill_with_background_color: true
 | |
|         fixed_height: 25
 | |
|         layout: @GUI::HorizontalBoxLayout {
 | |
|             spacing: 4
 | |
|         }
 | |
| 
 | |
|         @GUI::Label {
 | |
|             text: "End:"
 | |
|             text_alignment: "CenterLeft"
 | |
|             fixed_height: 14
 | |
|             font_weight: "Bold"
 | |
|         }
 | |
| 
 | |
|         @GUI::TextBox {
 | |
|             name: "end_date"
 | |
|             mode: "ReadOnly"
 | |
|             fixed_width: 80
 | |
|         }
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "pick_end_date"
 | |
|             fixed_width: 20
 | |
|         }
 | |
| 
 | |
|         @GUI::SpinBox {
 | |
|             name: "end_hour"
 | |
|             fixed_size: [50, 20]
 | |
|             min: 1
 | |
|             max: 24
 | |
|         }
 | |
| 
 | |
|         @GUI::SpinBox {
 | |
|             name: "end_minute"
 | |
|             fixed_size: [40, 20]
 | |
|             min: 0
 | |
|             max: 59
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::Layout::Spacer {}
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         fill_with_background_color: true
 | |
|         fixed_height: 20
 | |
|         layout: @GUI::HorizontalBoxLayout {}
 | |
| 
 | |
|         @GUI::Layout::Spacer {}
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "cancel_button"
 | |
|             text: "Cancel"
 | |
|             fixed_size: [80, 20]
 | |
|         }
 | |
| 
 | |
|         @GUI::Button {
 | |
|             name: "ok_button"
 | |
|             text: "OK"
 | |
|             fixed_size: [80, 20]
 | |
|         }
 | |
|     }
 | |
| }
 | 
