1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

Browser: Add right-click context menu item for editing bookmarks

This allows users to right-click on a bookmark button to open a small
dialog for editing bookmark titles and URLs.
This commit is contained in:
Timothy Flynn 2021-03-25 07:34:55 -04:00 committed by Andreas Kling
parent 990e362a17
commit cd82fd24e2
4 changed files with 174 additions and 0 deletions

View file

@ -0,0 +1,67 @@
@GUI::Widget {
fixed_width: 260
fixed_height: 85
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4, 4, 4, 4]
}
@GUI::Widget {
fixed_height: 24
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Label {
text: "Title:"
text_alignment: "CenterLeft"
fixed_width: 30
}
@GUI::TextBox {
name: "title_textbox"
}
}
@GUI::Widget {
fixed_height: 24
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Label {
text: "URL:"
text_alignment: "CenterLeft"
fixed_width: 30
}
@GUI::TextBox {
name: "url_textbox"
}
}
@GUI::Widget {
fixed_height: 24
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Widget {
}
@GUI::Button {
name: "ok_button"
text: "OK"
fixed_width: 75
}
@GUI::Button {
name: "cancel_button"
text: "Cancel"
fixed_width: 75
}
}
}