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

Source Code for Module style.default

 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.default --- 
18   
19  """module defining the default style""" 
20   
21 -class dow:
22 """day of week style""" 23 fg = (0,0,1) 24 frame_thickness = 0.1 25 frame = (0.75,0.75,0.75) 26 font = "Arial"
27
28 -class dom:
29 """day of month style""" 30 bg = (1,1,1) 31 frame = (0.75,0.75,0.75) 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.7,1,1) 42 fg = (0,0,1)
43
44 -class dom_holiday(dom):
45 """day of month (holiday, indicated by the OFF flag in the holiday file)""" 46 bg = (0.7,1,1) 47 fg = (1,0,0) 48 header = (1,0,0)
49
50 -class dom_weekend_holiday(dom_holiday):
51 """day of month (weekend & holiday)""" 52 pass
53
54 -class dom_multi(dom):
55 """day of month (multi-day holiday)""" 56 bg = (0.7,1,1)
57
58 -class dom_weekend_multi(dom_multi):
59 """day of month (weekend in multi-day holiday)""" 60 pass
61
62 -class month:
63 """month style""" 64 font = ("Times New Roman", 0, 1) 65 frame = (0,0,0) 66 frame_thickness = 0.2 67 bg = (1,1,1) 68 text_shadow = True 69 text_shadow_size = 0.2 70 box_shadow = True 71 box_shadow_size = 2 72 color_map_bg = (((.1,.3,.6),)*13,((.1,.5,.6),)*13) 73 color_map_fg = (((1,1,1),)*13,((1,1,1),)*13) 74