1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:07:34 +00:00

Maps: Add search panel

This commit is contained in:
Bastiaan van der Plaat 2023-09-16 21:14:21 +02:00 committed by Andrew Kaster
parent 2c2a1da306
commit deb7ecfbe9
9 changed files with 331 additions and 22 deletions

View file

@ -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 });
}
}