mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:32:43 +00:00 
			
		
		
		
	 1b7e2eb970
			
		
	
	
		1b7e2eb970
		
	
	
	
	
		
			
			This enables changing monitor settings for each monitor individually. In the event that changing a resolution causes screens to overlap we now try to disperse the screens, although the algorithm currently implemented may result in some rather unexpected layouts in certain cases. We can still improve this logic, and eventually we're going to have a widget where the screens can be arranged as desired.
		
			
				
	
	
		
			88 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| @GUI::Widget {
 | |
|     fill_with_background_color: true
 | |
| 
 | |
|     layout: @GUI::VerticalBoxLayout {
 | |
|         margins: [8, 8, 8, 8]
 | |
|     }
 | |
| 
 | |
|     @DisplaySettings::MonitorWidget {
 | |
|         name: "monitor_widget"
 | |
|         fixed_width: 304
 | |
|         fixed_height: 201
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         fixed_height: 20
 | |
|     }
 | |
| 
 | |
|     @GUI::Widget {
 | |
|         shrink_to_fit: true
 | |
|         layout: @GUI::HorizontalBoxLayout {
 | |
|             margins: [16, 8, 8, 6]
 | |
|         }
 | |
| 
 | |
|         @GUI::Label {
 | |
|             text: "Screen:"
 | |
|             text_alignment: "CenterLeft"
 | |
|             fixed_width: 95
 | |
|         }
 | |
| 
 | |
|         @GUI::ComboBox {
 | |
|             name: "screen_combo"
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     @GUI::GroupBox {
 | |
|         layout: @GUI::VerticalBoxLayout {
 | |
|             margins: [16, 24, 16, 6]
 | |
|         }
 | |
| 
 | |
|         title: "Screen settings"
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             shrink_to_fit: true
 | |
| 
 | |
|             layout: @GUI::HorizontalBoxLayout {
 | |
|             }
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 text: "Resolution:"
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 fixed_width: 95
 | |
|             }
 | |
| 
 | |
|             @GUI::ComboBox {
 | |
|                 name: "resolution_combo"
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             fixed_height: 8
 | |
|         }
 | |
| 
 | |
|         @GUI::Widget {
 | |
|             shrink_to_fit: true
 | |
| 
 | |
|             layout: @GUI::HorizontalBoxLayout {
 | |
|             }
 | |
| 
 | |
|             @GUI::Label {
 | |
|                 text: "Display scale:"
 | |
|                 text_alignment: "CenterLeft"
 | |
|                 fixed_width: 95
 | |
|             }
 | |
| 
 | |
|             @GUI::RadioButton {
 | |
|                 name: "scale_1x"
 | |
|                 text: "1x"
 | |
|                 fixed_width: 50
 | |
|             }
 | |
| 
 | |
|             @GUI::RadioButton {
 | |
|                 name: "scale_2x"
 | |
|                 text: "2x"
 | |
|                 fixed_width: 50
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |