Skip to content

Commit 810f199

Browse files
committed
unbreak zoom: remove webview.zoom_text_only property
Whenever webview.zoom_text_only is set (true or false), the webview.zomm_level is reset. The global zoom is considered more important, so the text-zoom is removed for now.
1 parent e755e78 commit 810f199

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

common/tokenize.list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ enable_write_console_messages_to_stdout
195195
media_playback_allows_inline
196196
media_playback_requires_gesture
197197
pictograph_font_family
198-
zoom_text_only
199198
body
200199
create_element
201200
query

lib/domain_props.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
-- - `serif_font_family`
9595
-- - `user_agent`
9696
-- - `zoom_level`
97-
-- - `zoom_text_only`
9897
--
9998
-- @module domain_props
10099
-- @author Mason Larobina

lib/webview.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,6 @@ local webview_settings = {
700700
default = 100,
701701
desc = "The default zoom level, as a percentage, at which to draw content.",
702702
},
703-
["webview.zoom_text_only"] = {
704-
type = "boolean",
705-
default = false,
706-
desc = "Whether zooming the page should affect the size of all elements, or only the text content.",
707-
},
708703
}
709704
settings.register_settings(webview_settings)
710705
settings.register_settings({

widgets/webview.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ static property_t webview_settings_properties[] = {
142142
{ L_TK_SANS_SERIF_FONT_FAMILY, "sans-serif-font-family", CHAR, TRUE },
143143
{ L_TK_SERIF_FONT_FAMILY, "serif-font-family", CHAR, TRUE },
144144
{ L_TK_USER_AGENT, "user-agent", CHAR, TRUE },
145-
{ L_TK_ZOOM_TEXT_ONLY, "zoom-text-only", BOOL, TRUE },
146145
{ 0, NULL, 0, 0 },
147146
};
148147

0 commit comments

Comments
 (0)