comparison europython.py @ 6:824ef25c04fd

modernized icon sizes
author RadomirDopieralski
date Wed, 25 Feb 2009 13:42:52 +0000
parents 925489450b1c
children c636bfecbb1d
comparison
equal deleted inserted replaced
5:5c7c21aaa3cd 6:824ef25c04fd
1 from MoinMoin.theme import rightsidebar 1 from MoinMoin.theme import rightsidebar
2 2
3 class Theme(rightsidebar.Theme): 3 class Theme(rightsidebar.Theme):
4 name = "europython" 4 name = "europython"
5 5
6 _ = lambda x: x # We don't have gettext at this moment, so we fake it
7 icons = {
8 # key alt icon filename w h
9 # FileAttach
10 'attach': ("%(attach_count)s", "moin-attach.png", 16, 16),
11 'info': ("[INFO]", "moin-info.png", 16, 16),
12 'attachimg': (_("[ATTACH]"), "attach.png", 32, 32),
13 # RecentChanges
14 'rss': (_("[RSS]"), "moin-rss.png", 16, 16),
15 'deleted': (_("[DELETED]"), "moin-deleted.png",16, 16),
16 'updated': (_("[UPDATED]"), "moin-updated.png",16, 16),
17 'renamed': (_("[RENAMED]"), "moin-renamed.png",16, 16),
18 'conflict': (_("[CONFLICT]"), "moin-conflict.png", 16, 16),
19 'new': (_("[NEW]"), "moin-new.png", 16, 16),
20 'diffrc': (_("[DIFF]"), "moin-diff.png", 16, 16),
21 # General
22 'bottom': (_("[BOTTOM]"), "moin-bottom.png", 16, 16),
23 'top': (_("[TOP]"), "moin-top.png", 16, 16),
24 'www': ("[WWW]", "moin-www.png", 16, 16),
25 'mailto': ("[MAILTO]", "moin-email.png", 16, 16),
26 'news': ("[NEWS]", "moin-news.png", 16, 16),
27 'telnet': ("[TELNET]", "moin-telnet.png", 16, 16),
28 'ftp': ("[FTP]", "moin-ftp.png", 16, 16),
29 'file': ("[FILE]", "moin-ftp.png", 16, 16),
30 # search forms
31 'searchbutton': ("[?]", "moin-search.png", 16, 16),
32 'interwiki': ("[%(wikitag)s]", "moin-inter.png", 16, 16),
33
34 # smileys (this is CONTENT, but good looking smileys depend on looking
35 # adapted to the theme background color and theme style in general)
36 #vvv == vvv this must be the same for GUI editor converter
37 'X-(': ("X-(", 'angry.png', 16, 16),
38 ':D': (":D", 'biggrin.png', 16, 16),
39 '<:(': ("<:(", 'frown.png', 16, 16),
40 ':o': (":o", 'redface.png', 16, 16),
41 ':(': (":(", 'sad.png', 16, 16),
42 ':)': (":)", 'smile.png', 16, 16),
43 'B)': ("B)", 'smile2.png', 16, 16),
44 ':))': (":))", 'smile3.png', 16, 16),
45 ';)': (";)", 'smile4.png', 16, 16),
46 '/!\\': ("/!\\", 'alert.png', 16, 16),
47 '<!>': ("<!>", 'attention.png', 16, 16),
48 '(!)': ("(!)", 'idea.png', 16, 16),
49 ':-?': (":-?", 'tongue.png', 16, 16),
50 ':\\': (":\\", 'ohwell.png', 16, 16),
51 '>:>': (">:>", 'devil.png', 16, 16),
52 '|)': ("|)", 'tired.png', 16, 16),
53 ':-(': (":-(", 'sad.png', 16, 16),
54 ':-)': (":-)", 'smile.png', 16, 16),
55 'B-)': ("B-)", 'smile2.png', 16, 16),
56 ':-))': (":-))", 'smile3.png', 16, 16),
57 ';-)': (";-)", 'smile4.png', 16, 16),
58 '|-)': ("|-)", 'tired.png', 16, 16),
59 '(./)': ("(./)", 'checkmark.png', 16, 16),
60 '{OK}': ("{OK}", 'thumbs-up.png', 16, 16),
61 '{X}': ("{X}", 'icon-error.png', 16, 16),
62 '{i}': ("{i}", 'icon-info.png', 16, 16),
63 '{1}': ("{1}", 'prio1.png', 15, 13),
64 '{2}': ("{2}", 'prio2.png', 15, 13),
65 '{3}': ("{3}", 'prio3.png', 15, 13),
66 '{*}': ("{*}", 'star_on.png', 16, 16),
67 '{o}': ("{o}", 'star_off.png', 16, 16),
68 }
69 del _
70
6 def execute(request): 71 def execute(request):
7 return Theme(request) 72 return Theme(request)