(Another) UI breakage request for Yelp
- From: Don Scorgie <Don Scorgie org>
- To: release-team <release-team gnome org>, desktop-devel-list gnome org, gnome-doc-list gnome org
- Subject: (Another) UI breakage request for Yelp
- Date: Wed, 05 Sep 2007 20:15:22 +0100
Hi,
The Yelp TOC, man pages and info pages currently do not support theming.
This was an oversight on my part. I updated the docbook xslt to new
g-d-u hotness but forgot to update the info, man and TOC xslt. Man and
info pages are unaffected by this (they don't use the theme settings for
anything implemented). The affected area is the TOC. The attached
patch makes the TOC use the theme settings again (for link colour and
the nice border around the section name).
Once more, I'll note that any affected screenshots are already outdated
and without this, the TOC may break under certain themes (high contrast
inverse) and (either way) looks somewhat out-of-place.
Thanks
Don
Index: stylesheets/toc2html.xsl
===================================================================
--- stylesheets/toc2html.xsl (revision 2924)
+++ stylesheets/toc2html.xsl (working copy)
@@ -8,25 +8,19 @@
<xsl:param name="help_icon"/>
<xsl:param name="help_icon_size"/>
-<xsl:param name="yelp.color.fg"/>
-<xsl:param name="yelp.color.bg"/>
-<xsl:param name="yelp.color.anchor"/>
-<xsl:param name="yelp.color.rule"/>
-<xsl:param name="yelp.color.gray.fg"/>
-<xsl:param name="yelp.color.gray.bg"/>
-<xsl:param name="yelp.color.gray.bg.dark1"/>
-<xsl:param name="yelp.color.gray.bg.dark2"/>
-<xsl:param name="yelp.color.gray.bg.dark3"/>
-<xsl:param name="yelp.color.selected.fg"/>
-<xsl:param name="yelp.color.selected.bg"/>
-<xsl:param name="yelp.color.selected.bg.dark1"/>
-<xsl:param name="yelp.color.selected.bg.dark2"/>
-<xsl:param name="yelp.color.selected.bg.dark3"/>
-<xsl:param name="yelp.color.admon.fg"/>
-<xsl:param name="yelp.color.admon.bg"/>
-<xsl:param name="yelp.color.admon.bg.dark1"/>
-<xsl:param name="yelp.color.admon.bg.dark2"/>
-<xsl:param name="yelp.color.admon.bg.dark3"/>
+<xsl:param name="theme.color.text"/>
+<xsl:param name="theme.color.background"/>
+<xsl:param name="theme.color.text_light"/>
+<xsl:param name="theme.color.link"/>
+<xsl:param name="theme.color.link_visited"/>
+<xsl:param name="theme.color.gray_background"/>
+<xsl:param name="theme.color.gray_border"/>
+<xsl:param name="theme.color.blue_background"/>
+<xsl:param name="theme.color.blue_border"/>
+<xsl:param name="theme.color.red_background"/>
+<xsl:param name="theme.color.red_border"/>
+<xsl:param name="theme.color.yellow_background"/>
+<xsl:param name="theme.color.yellow_border"/>
<xsl:template match="toc">
<yelp:document href="{ id}">
@@ -51,11 +45,11 @@
padding-bottom: 0.2em;
-moz-border-radius: 6px;
border: solid 1px </xsl:text>
- <xsl:value-of select="$yelp.color.selected.bg.dark1"/><xsl:text>;
+ <xsl:value-of select="$theme.color.blue_border"/><xsl:text>;
background-color: </xsl:text>
- <xsl:value-of select="$yelp.color.selected.bg"/><xsl:text>;
+ <xsl:value-of select="$theme.color.blue_background"/><xsl:text>;
color: </xsl:text>
- <xsl:value-of select="$yelp.color.selected.fg"/><xsl:text>;
+ <xsl:value-of select="$theme.color.text"/><xsl:text>;
}
h1 img {
position: absolute;
@@ -63,7 +57,7 @@
right: 18px;
}
h2 h3 {
- color: </xsl:text><xsl:value-of select="$yelp.color.fg"/><xsl:text>;
+ color: </xsl:text><xsl:value-of select="$theme.color.text"/><xsl:text>;
}
div[class~="body"] { }
div[class~="leftbar"] {
@@ -105,8 +99,8 @@
padding-left: 1em;
padding-right: 1em;
margin-right: 12px;
- background-color: </xsl:text><xsl:value-of select="$yelp.color.bg"/><xsl:text>;
- color: </xsl:text><xsl:value-of select="$yelp.color.fg"/><xsl:text>;
+ background-color: </xsl:text><xsl:value-of select="$theme.color.background"/><xsl:text>;
+ color: </xsl:text><xsl:value-of select="$theme.color.text"/><xsl:text>;
-moz-border-radius: 8px;
}
ul { margin-left: 0em; padding-left: 0em; }
@@ -134,7 +128,7 @@
dl { margin-left: 0em; padding-left: 0em; }
dt { font-size: 1.2em; margin-top: 1em; }
dd { margin-left: 1em; margin-top: 0.5em; }
- a { text-decoration: none; color: </xsl:text><xsl:value-of select="$yelp.color.anchor"/><xsl:text>; }
+ a { text-decoration: none; color: </xsl:text><xsl:value-of select="$theme.color.link"/><xsl:text>; }
a:hover { text-decoration: underline; }
</xsl:text></style>
</head>
Index: stylesheets/info2html.xsl
===================================================================
--- stylesheets/info2html.xsl (revision 2924)
+++ stylesheets/info2html.xsl (working copy)
@@ -16,25 +16,19 @@
<xsl:param name="yelp.icon.tip"/>
<xsl:param name="yelp.icon.warning"/>
-<xsl:param name="yelp.color.fg"/>
-<xsl:param name="yelp.color.bg"/>
-<xsl:param name="yelp.color.anchor"/>
-<xsl:param name="yelp.color.rule"/>
-<xsl:param name="yelp.color.gray.fg"/>
-<xsl:param name="yelp.color.gray.bg"/>
-<xsl:param name="yelp.color.gray.bg.dark1"/>
-<xsl:param name="yelp.color.gray.bg.dark2"/>
-<xsl:param name="yelp.color.gray.bg.dark3"/>
-<xsl:param name="yelp.color.selected.fg"/>
-<xsl:param name="yelp.color.selected.bg"/>
-<xsl:param name="yelp.color.selected.bg.dark1"/>
-<xsl:param name="yelp.color.selected.bg.dark2"/>
-<xsl:param name="yelp.color.selected.bg.dark3"/>
-<xsl:param name="yelp.color.admon.fg"/>
-<xsl:param name="yelp.color.admon.bg"/>
-<xsl:param name="yelp.color.admon.bg.dark1"/>
-<xsl:param name="yelp.color.admon.bg.dark2"/>
-<xsl:param name="yelp.color.admon.bg.dark3"/>
+<xsl:param name="theme.color.text"/>
+<xsl:param name="theme.color.background"/>
+<xsl:param name="theme.color.text_light"/>
+<xsl:param name="theme.color.link"/>
+<xsl:param name="theme.color.link_visited"/>
+<xsl:param name="theme.color.gray_background"/>
+<xsl:param name="theme.color.gray_border"/>
+<xsl:param name="theme.color.blue_background"/>
+<xsl:param name="theme.color.blue_border"/>
+<xsl:param name="theme.color.red_background"/>
+<xsl:param name="theme.color.red_border"/>
+<xsl:param name="theme.color.yellow_background"/>
+<xsl:param name="theme.color.yellow_border"/>
<xsl:template match="/Info">
<xsl:apply-templates select="Section"/>
@@ -96,7 +90,7 @@
h3 { font-size: 1.2em; font-weight: bold; }
h1, h2, h3, h4, h5, h6, h7 { color: </xsl:text>
-<xsl:value-of select="$yelp.color.gray.fg"/><xsl:text>; }
+<xsl:value-of select="$theme.color.text"/><xsl:text>; }
body { margin: 0em; padding: 0em; }
pre[class~="body"] {
Index: stylesheets/man2html.xsl
===================================================================
--- stylesheets/man2html.xsl (revision 2924)
+++ stylesheets/man2html.xsl (working copy)
@@ -23,25 +23,19 @@
<xsl:param name="yelp.icon.tip"/>
<xsl:param name="yelp.icon.warning"/>
-<xsl:param name="yelp.color.fg"/>
-<xsl:param name="yelp.color.bg"/>
-<xsl:param name="yelp.color.anchor"/>
-<xsl:param name="yelp.color.rule"/>
-<xsl:param name="yelp.color.gray.fg"/>
-<xsl:param name="yelp.color.gray.bg"/>
-<xsl:param name="yelp.color.gray.bg.dark1"/>
-<xsl:param name="yelp.color.gray.bg.dark2"/>
-<xsl:param name="yelp.color.gray.bg.dark3"/>
-<xsl:param name="yelp.color.selected.fg"/>
-<xsl:param name="yelp.color.selected.bg"/>
-<xsl:param name="yelp.color.selected.bg.dark1"/>
-<xsl:param name="yelp.color.selected.bg.dark2"/>
-<xsl:param name="yelp.color.selected.bg.dark3"/>
-<xsl:param name="yelp.color.admon.fg"/>
-<xsl:param name="yelp.color.admon.bg"/>
-<xsl:param name="yelp.color.admon.bg.dark1"/>
-<xsl:param name="yelp.color.admon.bg.dark2"/>
-<xsl:param name="yelp.color.admon.bg.dark3"/>
+<xsl:param name="theme.color.text"/>
+<xsl:param name="theme.color.background"/>
+<xsl:param name="theme.color.text_light"/>
+<xsl:param name="theme.color.link"/>
+<xsl:param name="theme.color.link_visited"/>
+<xsl:param name="theme.color.gray_background"/>
+<xsl:param name="theme.color.gray_border"/>
+<xsl:param name="theme.color.blue_background"/>
+<xsl:param name="theme.color.blue_border"/>
+<xsl:param name="theme.color.red_background"/>
+<xsl:param name="theme.color.red_border"/>
+<xsl:param name="theme.color.yellow_background"/>
+<xsl:param name="theme.color.yellow_border"/>
<xsl:template match="Man">
<xsl:choose>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]