1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:17: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

@ -0,0 +1,63 @@
@Maps::SearchPanel {
min_width: 100
preferred_width: 200
max_width: 350
layout: @GUI::VerticalBoxLayout {
spacing: 2
}
@GUI::Frame {
frame_style: "SunkenPanel"
fixed_height: 28
layout: @GUI::HorizontalBoxLayout {
margins: [2]
spacing: 2
}
@GUI::TextBox {
name: "search_textbox"
placeholder: "Search a place..."
}
@GUI::Button {
name: "search_button"
icon_from_path: "/res/icons/16x16/find.png"
fixed_width: 24
}
}
// Start, empty and places are toggled in visibility
@GUI::Frame {
name: "start_container"
frame_style: "SunkenPanel"
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::Label {
text: "Enter a search query to search for places..."
text_alignment: "CenterLeft"
}
}
@GUI::Frame {
name: "empty_container"
frame_style: "SunkenPanel"
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::Label {
text: "Can't find any places with the search query"
text_alignment: "CenterLeft"
}
}
@GUI::ListView {
name: "places_list"
horizontal_padding: 6
vertical_padding: 4
should_hide_unnecessary_scrollbars: true
alternating_row_colors: false
}
}