1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 19:37:35 +00:00

BrowserSettings: Add setting for search engine

This commit is contained in:
Sam Atkins 2021-11-25 12:26:54 +00:00 committed by Andreas Kling
parent e927048754
commit 11466c5316
4 changed files with 152 additions and 0 deletions

View file

@ -69,6 +69,78 @@
}
}
@GUI::GroupBox {
title: "Search Engine"
fixed_height: 140
layout: @GUI::VerticalBoxLayout {
margins: [16, 8, 8]
spacing: 2
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
@GUI::Label {
fixed_width: 32
fixed_height: 32
name: "search_engine_image_label"
}
@GUI::CheckBox {
text: "Search using '?' in the URL box"
name: "enable_search_engine_checkbox"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
name: "search_engine_combobox_group"
@GUI::Widget {
fixed_width: 32
}
@GUI::Label {
text: "Search engine:"
text_alignment: "CenterLeft"
fixed_width: 110
}
@GUI::ComboBox {
name: "search_engine_combobox"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
name: "custom_search_engine_group"
@GUI::Widget {
fixed_width: 32
}
@GUI::Label {
text: "Enter URL template:"
text_alignment: "CenterLeft"
fixed_width: 110
}
@GUI::TextBox {
name: "custom_search_engine_textbox"
placeholder: "https://host/search?q={}"
}
}
}
@GUI::GroupBox {
title: "Downloads"
fixed_height: 70