# -*- coding: iso-8859-1 -*-
"""
    MoinMoin starshine theme (dark) - thanks to Heather Stern.

    @copyright: 2003 by ThomasWaldmann (LinuxWiki:ThomasWaldmann)
    @license: GNU GPL, see COPYING for details.
"""

from classic import Theme as ThemeBase

class Theme(ThemeBase):
    """ This is the starshine theme. """

    name = 'starshine'

    _=lambda x: x # dummy function for i18n
    icons = {
        # key         alt                        filename of icon    w   h   
        # -------------------------------------------------------------------
        # navibar
        'help':       (  "%(page_help_contents)s", "moin-help.png",   21, 32),
        'find':       (  "%(page_find_page)s",     "moin-find.png",   21, 32),
        'diff':       (_("Diffs"),                 "moin-diff.png",   21, 32),
        'info':       (_("Info"),                  "moin-info.png",   21, 32),
        'edit':       (_("Edit"),                  "moin-edit.png",   21, 32),
        'unsubscribe':(_("Unsubscribe"),           "moin-unsubscribe.png",  21, 32),
        'subscribe':  (_("Subscribe"),             "moin-subscribe.png",21, 32),
        # XXX FIXME: the RAW icon is still missing, so we use XML ...
        'raw':        (_("Raw"),                   "moin-xml.png",    21, 32),
        'xml':        (_("XML"),                   "moin-xml.png",    21, 32),
        'print':      (_("Print"),                 "moin-print.png",  21, 32),
        'view':       (_("View"),                  "moin-show.png",   21, 32),
        'home':       (_("Home"),                  "moin-home.png",   21, 32),
        'up':         (_("Up"),                    "moin-parent.png", 21, 32),
        # FileAttach
        'attach':     (  "%(attach_count)s",       "moin-attach.png",  7, 15),
        # RecentChanges
        'rss':        (_("[RSS]"),                 "moin-rss.png",    36, 14),
        'deleted':    (_("[DELETED]"),             "moin-deleted.png",60, 12),
        'updated':    (_("[UPDATED]"),             "moin-updated.png",60, 12),
        'new':        (_("[NEW]"),                 "moin-new.png",    31, 12),
        'diffrc':     (_("[DIFF]"),                "moin-diff.png",   15, 11),
        # General
        'bottom':     (_("[BOTTOM]"),              "moin-bottom.png", 14, 10),
        'top':        (_("[TOP]"),                 "moin-top.png",    14, 10),
        'www':        (_("[WWW]"),                 "moin-www.png",    11, 11),
        'mailto':     (_("[MAILTO]"),              "moin-email.png",  14, 10),
        'news':       (_("[NEWS]"),                "moin-news.png",   10, 11),
        'telnet':     (_("[TELNET]"),              "moin-telnet.png", 10, 11),
        'ftp':        (_("[FTP]"),                 "moin-ftp.png",    11, 11),
        'file':       (_("[FILE]"),                "moin-ftp.png",    11, 11),
        # search forms
        'searchbutton': (_("[?]"),                 "moin-search.png", 12, 12),
        'interwiki':  ( ("[%(wikitag)s]"),         "moin-inter.png",  16, 16),
    }

    stylesheets = ThemeBase.stylesheets + (
        # theme charset         media       basename
        (name,  'iso-8859-1',   'screen',   'screen'),
    )

def execute(request):
    return Theme(request)

