aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index e05630bd..ba7700ea 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -291,8 +291,12 @@ void StyleEngine::apply (StyleAttrs *attrs, CssPropertyList *props) {
switch (p->name) {
/* \todo missing cases */
case CSS_PROPERTY_BACKGROUND_COLOR:
- attrs->backgroundColor =
- Color::create (layout, p->value.intVal);
+ if (!prefs.allow_white_bg && p->value.intVal == 0xffffff)
+ attrs->backgroundColor =
+ Color::create (layout, 0xdcd1ba);
+ else
+ attrs->backgroundColor =
+ Color::create (layout, p->value.intVal);
break;
case CSS_PROPERTY_BORDER_TOP_COLOR:
attrs->borderColor.top =