diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-12-29 10:19:40 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-12-29 10:19:40 +0000 |
commit | d024b438c98b634ab3d9fe51bd812286aed48f04 (patch) | |
tree | fd29a8ea12dbf17c876a85c620369e3b7786f2c4 | |
parent | 9cfeb0c12bdf91d7e1f5b2227107245476a6481a (diff) | |
download | yelp-d024b438c98b634ab3d9fe51bd812286aed48f04.tar.gz |
- Themed rule color for alternating rows in a table
* src/yelp-settings.c:
* src/yelp-settings.h:
* stylesheets/db2html.xsl.in:
- Themed rule color for alternating rows in a table
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/yelp-settings.c | 10 | ||||
-rw-r--r-- | src/yelp-settings.h | 1 | ||||
-rw-r--r-- | stylesheets/db2html.xsl.in | 4 |
4 files changed, 22 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2004-12-29 Shaun McCance <shaunm@gnome.org> + * src/yelp-settings.c: + * src/yelp-settings.h: + * stylesheets/db2html.xsl.in: + - Themed rule color for alternating rows in a table + +2004-12-29 Shaun McCance <shaunm@gnome.org> + * stylesheets/db2html.xsl.in: - Change chunk behavior to new gnome-doc-utils behavior - Various color and style things that I managed not to commit diff --git a/src/yelp-settings.c b/src/yelp-settings.c index 8071db63..8e7cd7a6 100644 --- a/src/yelp-settings.c +++ b/src/yelp-settings.c @@ -54,6 +54,7 @@ static const gchar *color_params[YELP_NUM_COLORS] = { "yelp.color.text", "yelp.color.anchor", "yelp.color.background", + "yelp.color.rule", "yelp.color.base0", "yelp.color.base1", "yelp.color.base2", @@ -577,6 +578,15 @@ settings_update (YelpSettingsType type) style->base[GTK_STATE_NORMAL].green >> 8, style->base[GTK_STATE_NORMAL].blue >> 8); + g_snprintf (colors[YELP_COLOR_RULE], 8, + "#%02X%02X%02X", + ((style->base[GTK_STATE_NORMAL].red >> 8) + + (style->bg[GTK_STATE_NORMAL].red >> 8) ) / 2, + ((style->base[GTK_STATE_NORMAL].green >> 8) + + (style->bg[GTK_STATE_NORMAL].green >> 8) ) / 2, + ((style->base[GTK_STATE_NORMAL].blue >> 8) + + (style->bg[GTK_STATE_NORMAL].blue >> 8) ) / 2); + for (i = 0; i < 4; i++) { rval = ((4 - i) * (style->bg[GTK_STATE_NORMAL].red >> 8) + i * max_text) / 4; diff --git a/src/yelp-settings.h b/src/yelp-settings.h index 06ff40c8..864f45d0 100644 --- a/src/yelp-settings.h +++ b/src/yelp-settings.h @@ -52,6 +52,7 @@ typedef enum { YELP_COLOR_TEXT = 0, YELP_COLOR_ANCHOR, YELP_COLOR_BACKGROUND, + YELP_COLOR_RULE, YELP_COLOR_BASE0, YELP_COLOR_BASE1, YELP_COLOR_BASE2, diff --git a/stylesheets/db2html.xsl.in b/stylesheets/db2html.xsl.in index 469cbe25..d0c6cd7c 100644 --- a/stylesheets/db2html.xsl.in +++ b/stylesheets/db2html.xsl.in @@ -18,6 +18,7 @@ <xsl:param name="yelp.color.text"/> <xsl:param name="yelp.color.anchor"/> <xsl:param name="yelp.color.background"/> +<xsl:param name="yelp.color.rule"/> <xsl:param name="yelp.color.base0"/> <xsl:param name="yelp.color.base1"/> <xsl:param name="yelp.color.base2"/> @@ -39,6 +40,9 @@ <xsl:param name="db2html.screen.border_color" select="$yelp.color.base1"/> +<xsl:param name="db2html.table.rule_color" + select="$yelp.color.rule"/> + <xsl:param name="db.chunk.chunk_top" select="true()"/> <xsl:param name="db.chunk.extension" select="''"/> <xsl:param name="db.chunk.cover_basename" select="'__yelp_cover'"/> |