From 06f9083bdeb085b7b9de762fa029f6519e142dbe Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 9 Jun 2024 21:52:14 +0200 Subject: Add support for zoom factor Allows zooming in and out of pages by changing the size of all elements, including font size, images and tables. The initial zoom is specified in the "zoom_factor" option of dillorc. Use the new shortcuts Ctrl+ and Ctrl- to adjust the zoom of the current page and Ctrl 0 to reset it to 100%. When a new tab or window is opened, the current zoom factor is inherited. Each tab retains its own zoom factor. Fixes: https://github.com/dillo-browser/dillo/issues/21 --- src/bw.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/bw.h') diff --git a/src/bw.h b/src/bw.h index 076c798e..a043e1ea 100644 --- a/src/bw.h +++ b/src/bw.h @@ -1,3 +1,15 @@ +/* + * File: bw.h + * + * Copyright (C) 2006-2011 Jorge Arellano Cid + * Copyright (C) 2024 Rodrigo Arias Mallo + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + */ + #ifndef __BW_H__ #define __BW_H__ @@ -57,6 +69,9 @@ typedef struct { /** HTML-bugs detected at parse time */ int num_page_bugs; Dstr *page_bugs; + + /* Zoom factor */ + float zoom; } BrowserWindow; -- cgit v1.2.3