mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Desktop: Show DisplayProperties in context menu
This commit is contained in:
parent
5457020d4e
commit
3bbd7d9425
Notes:
sideshowbarker
2024-07-19 17:34:37 +09:00
Author: https://github.com/JonArcherII Commit: https://github.com/SerenityOS/serenity/commit/3bbd7d94258 Pull-request: https://github.com/SerenityOS/serenity/pull/1926 Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 6 additions and 0 deletions
|
@ -200,8 +200,14 @@ int run_in_desktop_mode(RefPtr<Core::ConfigFile> config, String initial_location
|
|||
}
|
||||
});
|
||||
|
||||
auto display_properties_action = GUI::Action::create("Display properties...", {}, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-properties.png"), [&](const GUI::Action&) {
|
||||
Core::DesktopServices::open(URL::create_with_file_protocol("/bin/DisplayProperties"));
|
||||
});
|
||||
|
||||
desktop_view_context_menu->add_action(mkdir_action);
|
||||
desktop_view_context_menu->add_action(touch_action);
|
||||
desktop_view_context_menu->add_separator();
|
||||
desktop_view_context_menu->add_action(display_properties_action);
|
||||
|
||||
item_view.on_context_menu_request = [&](const GUI::ModelIndex& index, const GUI::ContextMenuEvent& event) {
|
||||
if (!index.is_valid())
|
||||
|
|
Loading…
Reference in a new issue