diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-02-11 11:02:04 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-02-11 14:18:30 +0100 |
commit | a88a9bab862149ada6e5aaff9173b71d0b68ce10 (patch) | |
tree | 375c41a42121281826025dd22018af937d17b399 /qutebrowser/config/qtargs.py | |
parent | 259ab83299bb300dda8447d44b5f4627edb3c9d5 (diff) | |
download | qutebrowser-a88a9bab862149ada6e5aaff9173b71d0b68ce10.tar.gz qutebrowser-a88a9bab862149ada6e5aaff9173b71d0b68ce10.zip |
darkmode: Improve tests
Diffstat (limited to 'qutebrowser/config/qtargs.py')
-rw-r--r-- | qutebrowser/config/qtargs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qutebrowser/config/qtargs.py b/qutebrowser/config/qtargs.py index cf08dc661..484f6cef9 100644 --- a/qutebrowser/config/qtargs.py +++ b/qutebrowser/config/qtargs.py @@ -175,6 +175,9 @@ def _qtwebengine_args( from qutebrowser.browser.webengine import darkmode for switch_name, values in darkmode.settings().items(): + # If we need to use other switches (say, --enable-features), we might need to + # refactor this so values still get combined with existing ones. + assert switch_name in ['dark-mode-settings', 'blink-settings'], switch_name yield f'--{switch_name}=' + ','.join(f'{k}={v}' for k, v in values) enabled_features, disabled_features = _qtwebengine_features(feature_flags) |