mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Maps: Add MapsSettings with multiple tile providers options
This commit is contained in:
parent
264782557e
commit
aed25991e6
14 changed files with 379 additions and 15 deletions
58
Userland/Applications/MapsSettings/MapsSettingsWidget.gml
Normal file
58
Userland/Applications/MapsSettings/MapsSettingsWidget.gml
Normal file
|
@ -0,0 +1,58 @@
|
|||
@MapsSettings::MapsSettingsWidget {
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
title: "Tile Provider"
|
||||
fixed_height: 104
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 16
|
||||
}
|
||||
|
||||
@GUI::ImageWidget {
|
||||
fixed_width: 32
|
||||
fixed_height: 32
|
||||
bitmap: "/res/icons/32x32/search-engine.png"
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Tile Provider:"
|
||||
text_alignment: "CenterLeft"
|
||||
fixed_width: 110
|
||||
}
|
||||
|
||||
@GUI::ComboBox {
|
||||
name: "tile_provider_combobox"
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 16
|
||||
}
|
||||
name: "custom_tile_provider_group"
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 32
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Enter URL template:"
|
||||
text_alignment: "CenterLeft"
|
||||
fixed_width: 110
|
||||
}
|
||||
|
||||
@GUI::TextBox {
|
||||
name: "custom_tile_provider_textbox"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue