mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Browser: Implement zoom :^)
Largely based on the Ladybird implementation in 0cc151b
.
This commit is contained in:
parent
966d808135
commit
36866730ce
3 changed files with 60 additions and 0 deletions
|
@ -180,6 +180,25 @@ void BrowserWindow::build_menus()
|
|||
view_menu.add_action(WindowActions::the().show_bookmarks_bar_action());
|
||||
view_menu.add_action(WindowActions::the().vertical_tabs_action());
|
||||
view_menu.add_separator();
|
||||
view_menu.add_action(GUI::CommonActions::make_zoom_in_action(
|
||||
[this](auto&) {
|
||||
auto& tab = active_tab();
|
||||
tab.view().zoom_in();
|
||||
},
|
||||
this));
|
||||
view_menu.add_action(GUI::CommonActions::make_zoom_out_action(
|
||||
[this](auto&) {
|
||||
auto& tab = active_tab();
|
||||
tab.view().zoom_out();
|
||||
},
|
||||
this));
|
||||
view_menu.add_action(GUI::CommonActions::make_reset_zoom_action(
|
||||
[this](auto&) {
|
||||
auto& tab = active_tab();
|
||||
tab.view().reset_zoom();
|
||||
},
|
||||
this));
|
||||
view_menu.add_separator();
|
||||
view_menu.add_action(GUI::CommonActions::make_fullscreen_action(
|
||||
[this](auto&) {
|
||||
auto& tab = active_tab();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue