Package style :: Module bw_sparse
[hide private]
[frames] | no frames]

Source Code for Module style.bw_sparse

 1  #    callirhoe - high quality calendar rendering 
 2  #    Copyright (C) 2012 George M. Tzoumas 
 3   
 4  #    Sparse Style Definition 
 5  #    Copyright (C) 2013 Neels Hofmeyr 
 6   
 7  #    This program is free software: you can redistribute it and/or modify 
 8  #    it under the terms of the GNU General Public License as published by 
 9  #    the Free Software Foundation, either version 3 of the License, or 
10  #    (at your option) any later version. 
11  # 
12  #    This program is distributed in the hope that it will be useful, 
13  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
14  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
15  #    GNU General Public License for more details. 
16  # 
17  #    You should have received a copy of the GNU General Public License 
18  #    along with this program.  If not, see http://www.gnu.org/licenses/ 
19   
20  # --- style.bw_sparse --- 
21   
22  """module defining the black & white sparse style 
23   
24  to be used with sparse layout 
25  """ 
26   
27 -class dow:
28 """day of week style""" 29 fg = (0,0,0) 30 frame_thickness = 0.1 31 frame = (.5, .5, .5) 32 font = "Arial"
33
34 -class dom:
35 """day of month style""" 36 bg = (1,1,1) 37 frame = (.9, .9, .9) 38 frame_thickness = 0.1 39 fg = (0.3,0.3,0.3) 40 font = "Times New Roman" 41 header = (0.3,0.3,0.3) 42 footer = header 43 header_font = footer_font = "Arial"
44
45 -class dom_holiday(dom):
46 """day of month (holiday, indicated by the OFF flag in the holiday file)""" 47 bg = (0.95,0.95,0.95)
48
49 -class dom_weekend(dom_holiday):
50 """day of month style (weekend)""" 51 font = ("Times New Roman", 0, 1)
52
53 -class dom_weekend_holiday(dom_weekend):
54 """day of month (weekend & holiday)""" 55 pass
56
57 -class dom_multi(dom_holiday):
58 """day of month (multi-day holiday)""" 59 pass
60
61 -class dom_weekend_multi(dom_weekend_holiday):
62 """day of month (weekend in multi-day holiday)""" 63 pass
64
65 -class month:
66 """month style""" 67 font = ("Times New Roman", 0, 1) 68 frame = (0,0,0) 69 frame_thickness = 0.2 70 bg = (1,1,1) 71 color_map = ((1,1,1),)*13 72 color_map_bg = (((1,1,1),)*13,((.8,.8,.8),)*13) 73 color_map_fg = (((0,0,0),)*13,((0,0,0),)*13) 74 box_shadow = False 75 text_shadow = False 76