diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 3d296fcaa..e5870e3fc 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -978,6 +978,13 @@ keyhint.blacklist: Globs are supported, so `;*` will blacklist all keychains starting with `;`. Use `*` to disable keyhints. +keyhint.radius: + type: + name: Int + minval: 0 + default: 6 + desc: The rounding radius for the edges of the keyhint dialog. + # emacs: ' keyhint.delay: diff --git a/qutebrowser/misc/keyhintwidget.py b/qutebrowser/misc/keyhintwidget.py index ce1f324e4..98dc8e275 100644 --- a/qutebrowser/misc/keyhintwidget.py +++ b/qutebrowser/misc/keyhintwidget.py @@ -54,9 +54,9 @@ class KeyHintView(QLabel): background-color: {{ conf.colors.keyhint.bg }}; padding: 6px; {% if conf.statusbar.position == 'top' %} - border-bottom-right-radius: 6px; + border-bottom-right-radius: {{ conf.keyhint.radius }}px; {% else %} - border-top-right-radius: 6px; + border-top-right-radius: {{ conf.keyhint.radius }}px; {% endif %} } """