Commits

Olemis Lang  committed 55d91f7

Example theme: Simple theme rendering admin menus in blue background

  • Participants

Comments (0)

Files changed (7)

+syntax: glob
+
+# Backup files left behind by the Emacs editor.
+*~
+# Lock files used by the Emacs editor.
+.\#*
+# Temporary files used by the vim editor.
+.*.swp
+# A hidden file created by the Mac OS X Finder.
+.DS_Store
+# Compiled Python scripts
+**/*.pyc
+**/*.pyo
+# Metadata for Python package 
+**/PKG-INFO
+**/*.egg-info
+*.egg-info
+# Temporary folders
+**/temp
+**/temp/*
+# SVN entries and temp files
+**/.svn/*
+.svn/**
+**/*.tmp
+# Build and dist dirs
+**/build/**
+**/dist/**
+build/**
+dist/**
+
+######################
+# Repos specific
+######################
+
+0.11\screenshots\**
+
+graft extheme/htdocs
+

File extheme/__init__.py

Empty file added.

File extheme/htdocs/example.css

+/* Trac custom stylesheet for Example theme */
+
+#mainnav {
+  background:#FFFFCC none repeat scroll 0pt 0pt;
+}
+
+#tabs {
+  background:#E0ECFF none repeat scroll 0% 0%;
+}

File extheme/htdocs/screenshot.png

Added
New image

File extheme/theme.py

+# Creado por Olemis Lang el 7/3/2009 12:31AM.
+# Copyright (c) 2009 Olemis Lang. All rights reserved.
+
+from trac.core import *
+
+from themeengine.api import ThemeBase
+
+class ExampleTheme(ThemeBase):
+    """Un tema sencillo para Trac."""
+    
+    htdocs = css = screenshot = True
+    
+#!/usr/bin/env python
+# -*- coding: iso-8859-1 -*-
+
+from setuptools import setup
+
+setup(
+  name = 'TracExampleTheme',
+  version = '1.0',
+  author = "Olemis Lang",
+  author_email = 'flioops.project@gmail.com',
+  maintainer = 'Olemis Lang',
+  maintainer_email = \
+                 'flioops.project@gmail.com',
+  description = "Tema de ejemplo (Trac)",
+  license = "GNU GPL v2",
+  keywords = "trac plugin theme",
+  url = "http://opensvn.csie.org/traccgi/swlcu",
+  packages = ['extheme'],
+  package_data = {'extheme': ['htdocs/*.*']},
+  classifiers = [
+      'Framework :: Trac',
+    ],
+  install_requires = ['TracThemeEngine'],
+  entry_points = {
+      'trac.plugins': [
+            'extheme.theme = extheme.theme',
+        ]}
+)