diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-11 23:31:03 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-11 23:31:03 +0100 |
commit | c320585dddc168f79fe502dfa504fcec188b2329 (patch) | |
tree | 13a7c70e8b63d4c9f7e8868ada8048c416486318 /src/plain.cc | |
parent | 8e34df3e95fb93b1857c9881d49b6aca46e159e9 (diff) |
always use shaded colors
This makes things much simpler and improves sharing of colors.
If computing two more shades really proves to be a performance
issue, we can shade on demand without exposing this optimization
to the interface.
Diffstat (limited to 'src/plain.cc')
-rw-r--r-- | src/plain.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plain.cc b/src/plain.cc index b75dbea5..8826dafe 100644 --- a/src/plain.cc +++ b/src/plain.cc @@ -108,9 +108,9 @@ DilloPlain::DilloPlain(BrowserWindow *p_bw, const DilloUrl *p_url) styleAttrs.initValues (); styleAttrs.margin.setVal (5); styleAttrs.font = style::Font::create (layout, &fontAttrs); - styleAttrs.color = style::Color::createSimple (layout, prefs.text_color); + styleAttrs.color = style::Color::create (layout, prefs.text_color); styleAttrs.backgroundColor = - style::Color::createSimple (layout, prefs.bg_color); + style::Color::create (layout, prefs.bg_color); widgetStyle = style::Style::create (layout, &styleAttrs); /* The context menu */ |