[Kde-imaging] extragear/libs/kipi-plugins/htmlexport/themes/simple

Aurélien Gâteau aurelien.gateau at free.fr
Sat May 5 12:53:15 CEST 2007


SVN commit 661368 by gateau:

Added a theme variant to the "Simple" theme. This variant is called "Dark".
Now you get to see what I have been doing with those theme parameters.
CCMAIL: kde-imaging at kde.org


 M  +2 -1      Makefile.am  
 A             dark.css  
 A             natural.css   style.css#659786
 M  +9 -0      simple.desktop  
 D             style.css  
 M  +11 -7     template.xsl  


--- trunk/extragear/libs/kipi-plugins/htmlexport/themes/simple/Makefile.am #661367:661368
@@ -1,5 +1,6 @@
 themedir=$(kde_datadir)/kipiplugin_htmlexport/themes/simple
 theme_DATA= \
 	simple.desktop \
-	style.css \
+	natural.css \
+	dark.css \
 	template.xsl
--- trunk/extragear/libs/kipi-plugins/htmlexport/themes/simple/simple.desktop #661367:661368
@@ -42,3 +42,12 @@
 Name=Aurélien Gâteau
 Name[ja]=Aurelien Gateau
 Url=mailto:aurelien.gateau at free.fr
+
+[X-HTMLExport Parameter style]
+Name=Style
+Type=list
+Default=natural.css
+Value_0=natural.css
+Caption_0=Natural
+Value_1=dark.css
+Caption_1=Dark
--- trunk/extragear/libs/kipi-plugins/htmlexport/themes/simple/template.xsl #661367:661368
@@ -13,7 +13,9 @@
 	<head>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 		<title><xsl:value-of select="title"/></title>
-		<link rel="stylesheet" type="text/css" href="../simple/style.css"/>
+		<link rel="stylesheet" type="text/css">
+			<xsl:attribute name="href">../simple/<xsl:value-of select="$style"/></xsl:attribute>
+		</link>
 	</head>
 	<body id="imagePage">
 	<h1>
@@ -81,7 +83,9 @@
 	<head>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 		<title><xsl:value-of select="name"/></title>
-		<link rel="stylesheet" type="text/css" href="simple/style.css"/>
+		<link rel="stylesheet" type="text/css">
+			<xsl:attribute name="href">simple/<xsl:value-of select="$style"/></xsl:attribute>
+		</link>
 	</head>
 	<body id="collectionPage">
 	<h1>
@@ -98,9 +102,7 @@
 				<li>
 					<a href='{$folder}/{full/@fileName}.html'>
 						<img src="{$folder}/{thumbnail/@fileName}" width="{thumbnail/@width}" height="{thumbnail/@height}" />
-					</a>
-					<br/>
-					<a href='{$folder}/{full/@fileName}.html'>
+						<br/>
 						<xsl:value-of select="title"/>
 					</a>
 				</li>
@@ -120,9 +122,11 @@
 	<head>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 		<title><xsl:value-of select="$i18nCollectionList"/></title>
-		<link rel="stylesheet" type="text/css" href="simple/style.css"/>
+		<link rel="stylesheet" type="text/css">
+			<xsl:attribute name="href">simple/<xsl:value-of select="$style"/></xsl:attribute>
+		</link>
 	</head>
-	<body>
+	<body id="collectionListPage">
 	<h1><xsl:value-of select="$i18nCollectionList"/></h1>
 	<div id="content">
 		<ul>


More information about the Kde-imaging mailing list