mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	Maps: Add search panel
This commit is contained in:
		
							parent
							
								
									2c2a1da306
								
							
						
					
					
						commit
						deb7ecfbe9
					
				
					 9 changed files with 331 additions and 22 deletions
				
			
		|  | @ -8,6 +8,8 @@ | |||
| #include <AK/JsonParser.h> | ||||
| #include <LibDesktop/Launcher.h> | ||||
| 
 | ||||
| namespace Maps { | ||||
| 
 | ||||
| UsersMapWidget::UsersMapWidget(Options const& options) | ||||
|     : MapWidget::MapWidget(options) | ||||
| { | ||||
|  | @ -65,7 +67,7 @@ void UsersMapWidget::add_users_to_map() | |||
|         return; | ||||
| 
 | ||||
|     for (auto const& user : m_users.value()) { | ||||
|         MapWidget::Marker marker = { user.coordinates, user.nick }; | ||||
|         MapWidget::Marker marker = { user.coordinates, user.nick, {}, "users"_string }; | ||||
|         if (!user.contributor) | ||||
|             marker.image = m_marker_gray_image; | ||||
|         add_marker(marker); | ||||
|  | @ -76,3 +78,5 @@ void UsersMapWidget::add_users_to_map() | |||
|         { { "https://github.com/SerenityOS/user-map" } }, | ||||
|         "users"_string }); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Bastiaan van der Plaat
						Bastiaan van der Plaat