aboutsummaryrefslogtreecommitdiff
path: root/src/table.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-06 10:09:38 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-06 10:09:38 +0100
commit620bd1c02fb87eb424819e4daf1482da29fb727e (patch)
treedc8c4e83d697e5a033dd7c1cf9c464513a0e3a44 /src/table.cc
parent9514cc5f1a0bc7e8ba63791edd62d2d9e69821f8 (diff)
remove bg_color dillorc option
To set a custom background color add a line like: body {background-color: white} to your ~/.dillo/style.css file. This also works for plain text display and image viewing.
Diffstat (limited to 'src/table.cc')
-rw-r--r--src/table.cc19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/table.cc b/src/table.cc
index 53325410..5964d88e 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -90,12 +90,8 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize)
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "bgcolor"))) {
bgcolor = a_Html_color_parse(html, attrbuf, -1);
- if (bgcolor != -1) {
- if (bgcolor == 0xffffff && !prefs.allow_white_bg)
- bgcolor = prefs.bg_color;
- S_TOP(html)->current_bg_color = bgcolor;
+ if (bgcolor != -1)
props.set (CSS_PROPERTY_BACKGROUND_COLOR, CSS_TYPE_COLOR, bgcolor);
- }
}
html->styleEngine->setNonCssHints (&props);
@@ -165,12 +161,8 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize)
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "bgcolor"))) {
bgcolor = a_Html_color_parse(html, attrbuf, -1);
- if (bgcolor != -1) {
- if (bgcolor == 0xffffff && !prefs.allow_white_bg)
- bgcolor = prefs.bg_color;
+ if (bgcolor != -1)
props.set (CSS_PROPERTY_BACKGROUND_COLOR, CSS_TYPE_COLOR, bgcolor);
- S_TOP(html)->current_bg_color = bgcolor;
- }
}
if (a_Html_get_attr (html, tag, tagsize, "align")) {
@@ -294,13 +286,8 @@ static void Html_tag_open_table_cell(DilloHtml *html,
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "bgcolor"))) {
bgcolor = a_Html_color_parse(html, attrbuf, -1);
- if (bgcolor != -1) {
- if (bgcolor == 0xffffff && !prefs.allow_white_bg)
- bgcolor = prefs.bg_color;
-
+ if (bgcolor != -1)
props->set (CSS_PROPERTY_BACKGROUND_COLOR, CSS_TYPE_COLOR, bgcolor);
- S_TOP(html)->current_bg_color = bgcolor;
- }
}
html->styleEngine->setNonCssHints (props);