From 7bfc1eb791bb3b7c8ee5e77957c370d7d0ae6f5c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 12 Feb 2014 23:28:03 +0100 Subject: [PATCH] Add FIXME for color validation --- qutebrowser/utils/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qutebrowser/utils/config.py b/qutebrowser/utils/config.py index 81b2317a6..239137e4a 100644 --- a/qutebrowser/utils/config.py +++ b/qutebrowser/utils/config.py @@ -137,6 +137,10 @@ class ColorDict(dict): """A dict aimed at Qt stylesheet colors.""" + # FIXME we should validate colors in __setitem__ based on: + # http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#brush + # http://www.w3.org/TR/CSS21/syndata.html#color-units + def __getitem__(self, key): """Override dict __getitem__.