diff options
Diffstat (limited to 'qutebrowser/config/configdata.yml')
-rw-r--r-- | qutebrowser/config/configdata.yml | 174 |
1 files changed, 88 insertions, 86 deletions
diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 05526260e..d1b883ff2 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -385,6 +385,25 @@ qt.workarounds.locale: However, It is expected that distributions shipping QtWebEngine 5.15.3 follow up with a proper fix soon, so it is disabled by default. +qt.workarounds.disable_accelerated_2d_canvas: + type: + name: String + valid_values: + - always: Disable accelerated 2d canvas + - auto: Disable on Qt6 < 6.6.0, enable otherwise + - never: Enable accelerated 2d canvas + default: auto + backend: QtWebEngine + restart: true + desc: >- + Disable accelerated 2d canvas to avoid graphical glitches. + + On some setups graphical issues can occur on sites like Google sheets + and PDF.js. These don't occur when accelerated 2d canvas is turned off, + so we do that by default. + + So far these glitches only occur on some Intel graphics devices. + ## auto_save auto_save.interval: @@ -435,12 +454,15 @@ content.canvas_reading: default: true type: Bool backend: QtWebEngine - restart: true + supports_pattern: true desc: >- Allow websites to read canvas elements. Note this is needed for some websites to work properly. + On QtWebEngine < 6.6, this setting requires a restart and does not support + URL patterns, only the global setting is applied. + # Defaults from QWebSettings::QWebSettings() in # qtwebkit/Source/WebKit/qt/Api/qwebsettings.cpp @@ -732,15 +754,15 @@ content.headers.user_agent: # 'ua_fetch.py' # Vim-protip: Place your cursor below this comment and run # :r!python scripts/dev/ua_fetch.py - - - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/110.0.0.0 Safari/537.36" - - Chrome 110 Win10 - - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 - (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" - - Chrome 110 macOS + (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" + - Chrome 117 macOS + - - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/117.0.0.0 Safari/537.36" + - Chrome 117 Win10 - - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like - Gecko) Chrome/110.0.0.0 Safari/537.36" - - Chrome 110 Linux + Gecko) Chrome/117.0.0.0 Safari/537.36" + - Chrome 117 Linux supports_pattern: true desc: | User agent to send. @@ -1009,6 +1031,31 @@ content.javascript.prompt: type: Bool desc: Show javascript prompts. +content.javascript.legacy_touch_events: + type: + name: String + valid_values: + - always: Legacy touch events are always enabled. This might cause some + websites to assume a mobile device. + - auto: Legacy touch events are only enabled if a touch screen was + detected on startup. + - never: Legacy touch events are always disabled. + default: never + backend: QtWebEngine + restart: true + desc: >- + Enables the legacy touch event feature. + + This affects JS APIs such as: + + - ontouch* members on window, document, Element + - document.createTouch, document.createTouchList + - document.createEvent("TouchEvent") + + Newer Chromium versions have those disabled by default: + https://bugs.chromium.org/p/chromium/issues/detail?id=392584 + https://groups.google.com/a/chromium.org/g/blink-dev/c/KV6kqDJpYiE + content.local_content_can_access_remote_urls: default: false type: Bool @@ -3272,22 +3319,11 @@ colors.webpage.darkmode.enabled: Example configurations from Chromium's `chrome://flags`: - - "With simple HSL/CIELAB/RGB-based inversion": Set - `colors.webpage.darkmode.algorithm` accordingly. - - - "With selective image inversion": Set - `colors.webpage.darkmode.policy.images` to `smart`. - - - "With selective inversion of non-image elements": Set - `colors.webpage.darkmode.threshold.text` to 150 and - `colors.webpage.darkmode.threshold.background` to 205. + `colors.webpage.darkmode.algorithm` accordingly, and + set `colors.webpage.darkmode.policy.images` to `never`. - - "With selective inversion of everything": Combines the two variants - above. - - - "With increased text contrast": Set - `colors.webpage.darkmode.increase_text_contrast` (QtWebEngine 6.3+) + - "With selective image inversion": qutebrowser default settings. restart: true backend: QtWebEngine @@ -3336,13 +3372,11 @@ colors.webpage.darkmode.policy.images: - never: Never apply dark mode filter to any images. - smart: "Apply dark mode based on image content. Not available with Qt 5.15.0." + - smart-simple: "On QtWebEngine 6.6, use a simpler algorithm for smart mode (based + on numbers of colors and transparency), rather than an ML-based model. + Same as 'smart' on older QtWebEnigne versions." desc: >- Which images to apply dark mode to. - - With QtWebEngine 5.15.0, this setting can cause frequent renderer process - crashes due to a - https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/304211[bug - in Qt]. restart: true backend: QtWebEngine @@ -3362,6 +3396,9 @@ colors.webpage.darkmode.policy.page: backend: QtWebEngine colors.webpage.darkmode.threshold.text: + renamed: colors.webpage.darkmode.threshold.foreground + +colors.webpage.darkmode.threshold.foreground: default: 256 type: name: Int @@ -3390,45 +3427,10 @@ colors.webpage.darkmode.threshold.background: 256 to never invert the color or to 0 to always invert it. Note: This behavior is the opposite of - `colors.webpage.darkmode.threshold.text`! - restart: true - backend: QtWebEngine - -colors.webpage.darkmode.grayscale.all: - default: false - type: Bool - desc: >- - Render all colors as grayscale. - - This only has an effect when `colors.webpage.darkmode.algorithm` is set to - `lightness-hsl` or `brightness-rgb`. + `colors.webpage.darkmode.threshold.foreground`! restart: true backend: QtWebEngine -colors.webpage.darkmode.grayscale.images: - default: 0.0 - type: - name: Float - minval: 0.0 - maxval: 1.0 - desc: >- - Desaturation factor for images in dark mode. - - If set to 0, images are left as-is. If set to 1, images are completely - grayscale. Values between 0 and 1 desaturate the colors accordingly. - restart: true - backend: QtWebEngine - -colors.webpage.darkmode.increase_text_contrast: - default: false - type: Bool - desc: >- - Increase text contrast by drawing an outline of the uninverted color. - restart: true - backend: - QtWebEngine: Qt 6.3 - QtWebKit: false - # emacs: ' ## fonts @@ -3679,17 +3681,17 @@ bindings.default: default: normal: <Escape>: clear-keychain ;; search ;; fullscreen --leave - o: set-cmd-text -s :open - go: set-cmd-text :open {url:pretty} - O: set-cmd-text -s :open -t - gO: set-cmd-text :open -t -r {url:pretty} - xo: set-cmd-text -s :open -b - xO: set-cmd-text :open -b -r {url:pretty} - wo: set-cmd-text -s :open -w - wO: set-cmd-text :open -w {url:pretty} - /: set-cmd-text / - ?: set-cmd-text ? - ":": "set-cmd-text :" + o: cmd-set-text -s :open + go: cmd-set-text :open {url:pretty} + O: cmd-set-text -s :open -t + gO: cmd-set-text :open -t -r {url:pretty} + xo: cmd-set-text -s :open -b + xO: cmd-set-text :open -b -r {url:pretty} + wo: cmd-set-text -s :open -w + wO: cmd-set-text :open -w {url:pretty} + /: cmd-set-text / + ?: cmd-set-text ? + ":": "cmd-set-text :" ga: open -t <Ctrl-T>: open -t <Ctrl-N>: open -w @@ -3699,7 +3701,7 @@ bindings.default: <Ctrl-Shift-W>: close D: tab-close -o co: tab-only - T: set-cmd-text -sr :tab-focus + T: cmd-set-text -sr :tab-focus gm: tab-move gK: tab-move - gJ: tab-move + @@ -3771,17 +3773,17 @@ bindings.default: wp: open -w -- {clipboard} wP: open -w -- {primary} m: quickmark-save - b: set-cmd-text -s :quickmark-load - B: set-cmd-text -s :quickmark-load -t - wb: set-cmd-text -s :quickmark-load -w + b: cmd-set-text -s :quickmark-load + B: cmd-set-text -s :quickmark-load -t + wb: cmd-set-text -s :quickmark-load -w M: bookmark-add - gb: set-cmd-text -s :bookmark-load - gB: set-cmd-text -s :bookmark-load -t - wB: set-cmd-text -s :bookmark-load -w + gb: cmd-set-text -s :bookmark-load + gB: cmd-set-text -s :bookmark-load -t + wB: cmd-set-text -s :bookmark-load -w sf: save - ss: set-cmd-text -s :set - sl: set-cmd-text -s :set -t - sk: set-cmd-text -s :bind + ss: cmd-set-text -s :set + sl: cmd-set-text -s :set -t + sk: cmd-set-text -s :bind -: zoom-out +: zoom-in =: zoom @@ -3804,7 +3806,7 @@ bindings.default: ad: download-cancel cd: download-clear gf: view-source - gt: set-cmd-text -s :tab-select + gt: cmd-set-text -s :tab-select <Ctrl-Tab>: tab-focus last <Ctrl-Shift-Tab>: nop <Ctrl-^>: tab-focus last @@ -3837,7 +3839,7 @@ bindings.default: Sh: history <Return>: selection-follow <Ctrl-Return>: selection-follow -t - .: repeat-command + .: cmd-repeat-last <Ctrl-p>: tab-pin <Alt-m>: tab-mute gD: tab-give |