On Wed, 26 Jun 2024 21:16:47 +0200 Rodrigo Arias <rodarima@gmail.com> wrote:
One thing which I would suggest is also having optional toolbar buttons to control this.
Yeah, I thought about adding three new menu items in the main menu or under a sub-menu, but I like the idea of Firefox and Chromium where they placed both the [-] [+] buttons inside a main menu item.
Not sure how hard it would be to do with FLTK.
I briefly looked at adding this to the Page menu, it certainly looks possible, but it's a little beyond me at the moment. Same with toolbar buttons. So, right now I just tried to find the least complicated way to zoom with the mouse. Here is a patch which allows zooming in and out using the Refresh button. Right clicking on it zooms the page in. Middle clicking zooms out. It's not especially intuitive, but it's simple and it works. $ diff -u ui.cc.orig ui.cc.mod --- ui.cc.orig Fri Jul 5 15:04:00 2024 +++ ui.cc.mod Fri Jul 5 16:07:48 2024 @@ -333,6 +333,10 @@ case UI_RELOAD: if (b == FL_LEFT_MOUSE) { a_UIcmd_reload(a_UIcmd_get_bw_by_widget(wid)); + } else if (b == FL_RIGHT_MOUSE) { + a_UIcmd_zoom_in(a_UIcmd_get_bw_by_widget(wid)); + } else if (b == FL_MIDDLE_MOUSE) { + a_UIcmd_zoom_out(a_UIcmd_get_bw_by_widget(wid)); } break; case UI_SAVE: Regards, Alex