aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/styleengine.cc8
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b775276b..f23d4772 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -72,6 +72,7 @@ dillo-2.1
- Fix CSS string parsing bug.
- Replace visited_color dillorc option.
- Add support for negative numbers in CSS parser.
+ - Fix allow_white_bg dillorc option.
Patches: Johannes Hofmann
+- Updated the GPL copyright note in the source files.
Patch: Detlef Riekenberg
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 =