From cd260aabdb23fd97d9cb8b0105e61d90ca844f01 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 3 Jun 2007 22:18:54 +0000 Subject: - general CSS based themeing support. - added setup option to select theme. - added search scheme for themable images and stylesheets. - added marine (default) and redwine theme. - documented new features. All developers must read doc/dev-conventions.txt --- tntconfig.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index 6a6e576..e417de4 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -35,7 +35,18 @@ void TntConfig::WriteConfig() // XXX modularize file << "MapUrl ^/$ login@" << endl; - file << "MapUrl /css.*/(.+) content@ css/$1 text/css" << endl; + file << "MapUrl ^/themes/([^/]*)/css.*/(.+\\.css) content@ themes/$1/css/$2 text/css" << endl; + + // the following rules provide a search scheme for images. The first + // rule where a image is found, terminates the search. + // 1. /themes//img/. + // 2. /dist/img/. + // 3. . (builtin images) + file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ themes/$1/img/$2.$3 image/$3" << endl; + file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ dist/img/$2.$3 image/$3" << endl; + file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl; + + file << "MapUrl ^/css.*/(.+) content@ css/$1 text/css" << endl; file << "MapUrl /([^/]+/.+) content@ $1" << endl; file << "MapUrl /([^.]+)(\\..+)? $1@" << endl; file << "PropertyFile " << m_propertiesPath << endl; -- cgit v1.2.3