mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:52:45 +00:00 
			
		
		
		
	LibGUI+Applications: Give SettingsWindow tabs a string ID
This gives us a convenient way to refer to them, which will be used in the following commit.
This commit is contained in:
		
							parent
							
								
									4d2e18fb07
								
							
						
					
					
						commit
						ded5ba1f87
					
				
					 9 changed files with 35 additions and 34 deletions
				
			
		|  | @ -2,7 +2,7 @@ | |||
|  * Copyright (c) 2020, Idan Horowitz <idan.horowitz@serenityos.org> | ||||
|  * Copyright (c) 2021, the SerenityOS developers. | ||||
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org> | ||||
|  * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org> | ||||
|  * Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org> | ||||
|  * | ||||
|  * SPDX-License-Identifier: BSD-2-Clause | ||||
|  */ | ||||
|  | @ -26,8 +26,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     auto app_icon = GUI::Icon::default_icon("app-mouse"); | ||||
| 
 | ||||
|     auto window = TRY(GUI::SettingsWindow::create("Mouse Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes)); | ||||
|     (void)TRY(window->add_tab<MouseWidget>("Mouse")); | ||||
|     (void)TRY(window->add_tab<ThemeWidget>("Cursor Theme")); | ||||
|     (void)TRY(window->add_tab<MouseWidget>("Mouse", "mouse")); | ||||
|     (void)TRY(window->add_tab<ThemeWidget>("Cursor Theme", "cursor-theme")); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
| 
 | ||||
|     window->show(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins