diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-09-24 23:44:47 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-09-24 23:44:47 +0200 |
commit | a6cf69ecca7f17838f551a2983e2277440ec3f0d (patch) | |
tree | 241eb105146d373c235cda587c3e561e6e9e9296 /src/web.cc | |
parent | b66ff3ea295863bebe2d062df0c235891f9a597b (diff) |
call layout->setBgColor() from web.cc
Diffstat (limited to 'src/web.cc')
-rw-r--r-- | src/web.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -61,10 +61,13 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, if (Web->flags & WEB_RootUrl) { /* We have RootUrl! */ + style::Color *bgColor = style::Color::create (layout, prefs.bg_color); + Web->bgColor = bgColor->getColor (); + layout->setBgColor (bgColor); + /* Set a style for the widget */ StyleEngine styleEngine (layout); styleEngine.startElement ("body"); - Web->bgColor= styleEngine.backgroundStyle()->backgroundColor->getColor(); dw = (Widget*) a_Mime_set_viewer(Type, Web, Call, Data); if (dw == NULL) |