summaryrefslogtreecommitdiff
path: root/qutebrowser/config/configtypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/config/configtypes.py')
-rw-r--r--qutebrowser/config/configtypes.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py
index 49a1f0356..c157fba41 100644
--- a/qutebrowser/config/configtypes.py
+++ b/qutebrowser/config/configtypes.py
@@ -1996,3 +1996,16 @@ class UrlPattern(BaseType):
return urlmatch.UrlPattern(value)
except urlmatch.ParseError as e:
raise configexc.ValidationError(value, str(e))
+
+
+class StatusbarWidget(String):
+
+ """A widget for the status bar.
+
+ Allows some predefined widgets and custom text-widgets via text:$CONTENT.
+ """
+
+ def _validate_valid_values(self, value: str) -> None:
+ if value.startswith("text:"):
+ return
+ super()._validate_valid_values(value)