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

Source Code for Module style.bw

 1  #    callirhoe - high quality calendar rendering 
 2  #    Copyright (C) 2012 George M. Tzoumas 
 3   
 4  #    This program is free software: you can redistribute it and/or modify 
 5  #    it under the terms of the GNU General Public License as published by 
 6  #    the Free Software Foundation, either version 3 of the License, or 
 7  #    (at your option) any later version. 
 8  # 
 9  #    This program is distributed in the hope that it will be useful, 
10  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
11  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
12  #    GNU General Public License for more details. 
13  # 
14  #    You should have received a copy of the GNU General Public License 
15  #    along with this program.  If not, see http://www.gnu.org/licenses/ 
16   
17  # --- style.bw --- 
18   
19  """module defining the black & white style""" 
20   
21 -class dow:
22 """day of week style""" 23 fg = (.33,.33,.33) 24 frame_thickness = 0.1 25 frame = (0.8,0.8,0.8) 26 font = "Arial"
27
28 -class dom:
29 """day of month style""" 30 bg = (1,1,1) 31 frame = (0.8,0.8,0.8) 32 frame_thickness = 0.1 33 fg = (0.2,0.2,0.2) 34 font = "Times New Roman" 35 header = (0.5,0.5,0.5) 36 footer = header 37 header_font = footer_font = "Arial"
38
39 -class dom_weekend(dom):
40 """day of month style (weekend)""" 41 bg = (0.95,0.95,0.95) 42 fg = (0,0,0) 43 font = ("Times New Roman", 0, 1)
44
45 -class dom_holiday(dom):
46 """day of month (holiday, indicated by the OFF flag in the holiday file)""" 47 fg = (0,0,0) 48 bg = (0.95,0.95,0.95) 49 header = (0,0,0) 50 font = ("Times New Roman", 0, 1)
51
52 -class dom_weekend_holiday(dom_holiday):
53 """day of month (weekend & holiday)""" 54 fg = (0,0,0) 55 bg = (0.95,0.95,0.95)
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