mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	Apps+Demos+Dialogs: Remove unnecessary minimum window sizes
The new layout system conveniently calculates these for us now. In the case of Mandelbrot where it needs to be overriden, make sure to disable obey min widget size first. In EmojiInputDialog's case, the window needs to be resized instead to center correctly.
This commit is contained in:
		
							parent
							
								
									46d6347035
								
							
						
					
					
						commit
						f833473df0
					
				
					 5 changed files with 2 additions and 5 deletions
				
			
		|  | @ -30,9 +30,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     auto window = TRY(GUI::Window::try_create()); | ||||
|     window->resize(480, 250); | ||||
|     window->center_on_screen(); | ||||
| 
 | ||||
|     window->set_title("Welcome"); | ||||
|     window->set_minimum_size(480, 250); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
|     auto welcome_widget = TRY(window->try_set_main_widget<WelcomeWidget>()); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool