From c320585dddc168f79fe502dfa504fcec188b2329 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 11 Dec 2008 23:31:03 +0100 Subject: 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. --- src/plain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plain.cc') 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 */ -- cgit v1.2.3