Ignore:
Timestamp:
14 Oct 2011, 08:01:30 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's provide a real YUI base theme which can be customized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/theming.py

    r6009 r6894  
    3030from waeup.sirp.browser.interfaces import ITheme
    3131from waeup.sirp.browser.resources import (
    32     waeuptheme_red1, waeuptheme_gray1, waeuptheme_base,
     32    waeuptheme_red1, waeuptheme_gray1, waeuptheme_empty,
     33    waeup_base_css,
    3334    )
     35
     36class WAeUPThemeBase(grok.GlobalUtility):
     37    grok.implements(ITheme)
     38    grok.name('base waeup theme')
     39
     40    description = u"Base Theme"
     41
     42    def getResources(self):
     43        return [waeup_base_css]
    3444
    3545class WAeUPThemeRed1(grok.GlobalUtility):
     
    5161        return [waeuptheme_gray1]
    5262
    53 class WAeUPThemeBase(grok.GlobalUtility):
     63class WAeUPThemeEmpty(grok.GlobalUtility):
    5464    """A theme based on jQuery only.
    5565
     
    5767    """
    5868    grok.implements(ITheme)
    59     grok.name('base theme')
    60     description = u'Base Theme'
     69    grok.name('empty theme')
     70    description = u'Empty Theme'
    6171
    6272    def getResources(self):
    63         return [waeuptheme_base]
     73        return [waeuptheme_empty]
    6474
    6575def get_all_themes():
Note: See TracChangeset for help on using the changeset viewer.