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

Source Code for Module style.transparent

 1  #    callirhoe - high quality calendar rendering 
 2  #    Copyright (C) 2012-2014 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.transparent --- 
18   
19  """module defining the transparent style""" 
20   
21  _fg = (0.5,0,0.5) 
22  _OPACITY = 0.1 
23   
24 -class dow:
25 """day of week style""" 26 fg = (0,0,0) 27 frame_thickness = 0.3 28 frame = (0.5,0.5,0.5) 29 font = "Arial"
30
31 -class dom:
32 """day of month style""" 33 bg = (1,1,1,_OPACITY) 34 frame = (0.5,0.5,0.5) 35 frame_thickness = 0.3 36 fg = (0,0,0) 37 font = "Times New Roman" 38 header = (0.3,0.3,0.3) 39 footer = header 40 header_font = footer_font = "Arial"
41
42 -class dom_weekend(dom):
43 """day of month style (weekend)""" 44 bg = (0.8,0.8,0.8,_OPACITY) 45 fg = _fg 46 font = ("Times New Roman", 0, 1)
47
48 -class dom_holiday(dom):
49 """day of month (holiday, indicated by the OFF flag in the holiday file)""" 50 fg = _fg 51 bg = (0.8,0.8,0.8,_OPACITY) 52 header = (0,0,0) 53 font = ("Times New Roman", 0, 1)
54
55 -class dom_weekend_holiday(dom_holiday):
56 """day of month (weekend & holiday)""" 57 bg = (0.8,0.8,0.8,_OPACITY)
58
59 -class dom_multi(dom_holiday):
60 """day of month (multi-day holiday)""" 61 pass
62
63 -class dom_weekend_multi(dom_weekend_holiday):
64 """day of month (weekend in multi-day holiday)""" 65 pass
66
67 -class month:
68 """month style""" 69 font = ("Times New Roman", 0, 1) 70 frame = (0,0,0) 71 frame_thickness = 0.3 72 bg = (1,1,1,_OPACITY) 73 color_map = ((1,1,1),)*13 74 color_map_bg = (((1,1,1,_OPACITY),)*13,((.8,.8,.8,_OPACITY),)*13) 75 color_map_fg = (((0,0,0),)*13,((0,0,0),)*13) 76 box_shadow = False 77 text_shadow = False 78