mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Applications: Use modeless windows in some apps
Browser, Spreadsheet and Charactermap now open child windows modelessly.
This commit is contained in:
parent
35a230f974
commit
d5de9bcc51
3 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,7 @@ void Tab::view_source(const URL& url, String const& source)
|
|||
window->resize(640, 480);
|
||||
window->set_title(url.to_string());
|
||||
window->set_icon(g_icon_bag.filetype_text);
|
||||
window->set_window_mode(GUI::WindowMode::Modeless);
|
||||
window->show();
|
||||
}
|
||||
|
||||
|
@ -555,6 +556,7 @@ void Tab::show_inspector_window(Browser::Tab::InspectorTarget inspector_target)
|
|||
{
|
||||
if (!m_dom_inspector_widget) {
|
||||
auto window = GUI::Window::construct(&this->window());
|
||||
window->set_window_mode(GUI::WindowMode::Modeless);
|
||||
window->resize(300, 500);
|
||||
window->set_title("Inspector");
|
||||
window->set_icon(g_icon_bag.inspector_object);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue