File: offthemes.py

package info (click to toggle)
offpunk 3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,012 kB
  • sloc: python: 6,263; sh: 117; makefile: 2
file content (103 lines) | stat: -rw-r--r-- 4,776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/python
colors = {
                "bold"   : ["1","22"],
                "faint"  : ["2","22"],
                "italic" : ["3","23"],
                "underline": ["4","24"],
                "black"   : ["30","39"],
                "red"    : ["31","39"],
                "green"    : ["32","39"],
                "yellow" : ["33","39"],
                "blue"   : ["34","39"],
                "purple"   : ["35","39"],
                "cyan"   : ["36","39"],
                "white"   : ["37","39"],
                "background_black"   : ["40","49"],
                "background_red"    : ["41","49"],
                "background_green"    : ["42","49"],
                "background_yellow" : ["43","49"],
                "background_blue"   : ["44","49"],
                "background_purple"   : ["45","49"],
                "background_cyan"   : ["46","49"],
                "background_white"   : ["47","49"],
                "bright_black"   : ["90","39"],
                "bright_red"    : ["91","39"],
                "bright_green"    : ["92","39"],
                "bright_yellow" : ["93","39"],
                "bright_blue"   : ["94","39"],
                "bright_purple"   : ["95","39"],
                "bright_cyan"   : ["96","39"],
                "bright_white"   : ["97","39"],
           }

offpunk1 = {
                "window_title" :    ["red","bold"],
                "window_subtitle" : ["red","faint"],
                "title" :           ["blue","bold","underline"],
                "subtitle" :        ["blue"],
                "subsubtitle" :     ["blue","faint"], #fallback to subtitle if none
                "link"  :           ["blue","faint"],
                "new_link":         ["bold"],
                "blocked_link":     ["red","faint"],
                "oneline_link":     [],     #for gopher/gemini. fallback to link if none
                "image_link" :      ["yellow","faint"],
                "preformatted":     ["faint"],
                "blockquote" :      ["italic"],
                "prompt_on" :       ["green"],
                "prompt_off" :      ["green"],
             }  

yellow = {
                "window_title" :    ["red","bold"],
                "window_subtitle" : ["red","faint"],
                "title" :           ["yellow","bold","underline"],
                "subtitle" :        ["yellow","bold"],
                "subsubtitle" :     ["yellow","faint","underline"], #fallback to subtitle if none
                "link"  :           ["yellow","faint"],
                "new_link":         ["bold"],
                "blocked_link":     ["red","faint"],
                "oneline_link":     ["white"],     #for gopher/gemini. fallback to link if none
                "image_link" :      ["yellow","italic","faint"],
                "preformatted":     ["faint"],
                "blockquote" :      ["italic"],
                "prompt_on" :       ["green","bold"],
                "prompt_off" :      ["red","bold"],
        }


cyan =   {
                "window_title" :    ["blue","bold"],
                "window_subtitle" : ["blue","faint"],
                "title" :           ["cyan","bold","underline"],
                "subtitle" :        ["cyan","bold"],
                "subsubtitle" :     ["cyan","faint","underline"], #fallback to subtitle if none
                "link"  :           ["cyan",],
                "new_link":         ["bold"],
                "blocked_link":     ["red","faint"],
                "oneline_link":     ["white"],     #for gopher/gemini. fallback to link if none
                "image_link" :      ["blue","italic","faint"],
                "preformatted":     ["faint"],
                "blockquote" :      ["italic"],
                "prompt_on" :       ["green","bold"],
                "prompt_off" :      ["blue","bold"],
        }

bw =   {
                "window_title" :    ["background_white", "black","bold"],
                "window_subtitle" : ["background_white", "black","faint"],
                "title" :           ["bold","underline"],
                "subtitle" :        ["bold"],
                "subsubtitle" :     ["faint","underline"], #fallback to subtitle if none
                "link"  :           ["bold",],
                "new_link":         ["bold"],
                "blocked_link":     ["faint"],
                "oneline_link":     [],     #for gopher/gemini. fallback to link if none
                "image_link" :      ["italic","faint"],
                "preformatted":     ["faint"],
                "blockquote" :      ["italic"],
                "prompt_on" :       ["bold"],
                "prompt_off" :      ["faint"],
        }

themes = {"offpunk1":offpunk1,"yellow":yellow, "cyan":cyan, "bw": bw}
default = offpunk1