2012-07-17 20:44:12 +00:00
|
|
|
# callirhoe - high quality calendar rendering
|
|
|
|
# Copyright (C) 2012 George M. Tzoumas
|
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see http://www.gnu.org/licenses/
|
|
|
|
|
2012-07-18 23:00:52 +00:00
|
|
|
# --- style.bw ---
|
2012-07-17 20:44:12 +00:00
|
|
|
|
2014-09-03 21:18:16 +00:00
|
|
|
"""module defining the black & white style"""
|
2014-09-03 12:56:19 +00:00
|
|
|
|
2012-07-17 20:44:12 +00:00
|
|
|
class dow:
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of week style"""
|
2012-07-17 20:44:12 +00:00
|
|
|
fg = (.33,.33,.33)
|
2012-08-06 10:50:18 +00:00
|
|
|
frame_thickness = 0.1
|
2012-07-17 20:44:12 +00:00
|
|
|
frame = (0.8,0.8,0.8)
|
|
|
|
font = "Arial"
|
|
|
|
|
|
|
|
class dom:
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month style"""
|
2012-07-17 20:44:12 +00:00
|
|
|
bg = (1,1,1)
|
|
|
|
frame = (0.8,0.8,0.8)
|
2012-08-06 10:50:18 +00:00
|
|
|
frame_thickness = 0.1
|
2012-07-17 20:44:12 +00:00
|
|
|
fg = (0.2,0.2,0.2)
|
|
|
|
font = "Times New Roman"
|
|
|
|
header = (0.5,0.5,0.5)
|
|
|
|
footer = header
|
|
|
|
header_font = footer_font = "Arial"
|
|
|
|
|
|
|
|
class dom_weekend(dom):
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month style (weekend)"""
|
2012-07-17 20:44:12 +00:00
|
|
|
bg = (0.95,0.95,0.95)
|
|
|
|
fg = (0,0,0)
|
2012-07-20 21:47:24 +00:00
|
|
|
font = ("Times New Roman", 0, 1)
|
2012-07-17 20:44:12 +00:00
|
|
|
|
|
|
|
class dom_holiday(dom):
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month (holiday, indicated by the OFF flag in the holiday file)"""
|
2012-07-17 20:44:12 +00:00
|
|
|
fg = (0,0,0)
|
2013-12-29 23:56:21 +00:00
|
|
|
bg = (0.95,0.95,0.95)
|
2012-07-17 20:44:12 +00:00
|
|
|
header = (0,0,0)
|
2012-07-20 21:47:24 +00:00
|
|
|
font = ("Times New Roman", 0, 1)
|
2012-07-17 20:44:12 +00:00
|
|
|
|
2013-12-29 20:56:48 +00:00
|
|
|
class dom_weekend_holiday(dom_holiday):
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month (weekend & holiday)"""
|
2013-12-29 23:56:21 +00:00
|
|
|
fg = (0,0,0)
|
|
|
|
bg = (0.95,0.95,0.95)
|
|
|
|
|
|
|
|
class dom_multi(dom_holiday):
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month (multi-day holiday)"""
|
2013-12-29 23:56:21 +00:00
|
|
|
pass
|
|
|
|
|
2013-12-30 21:29:43 +00:00
|
|
|
class dom_weekend_multi(dom_weekend_holiday):
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month (weekend in multi-day holiday)"""
|
2013-12-29 23:56:21 +00:00
|
|
|
pass
|
2012-07-17 20:44:12 +00:00
|
|
|
|
|
|
|
class month:
|
2014-09-03 12:56:19 +00:00
|
|
|
"""month style"""
|
2012-07-20 21:47:24 +00:00
|
|
|
font = ("Times New Roman", 0, 1)
|
2012-07-17 20:44:12 +00:00
|
|
|
frame = (0,0,0)
|
2012-08-06 10:50:18 +00:00
|
|
|
frame_thickness = 0.2
|
2012-07-17 20:44:12 +00:00
|
|
|
bg = (1,1,1)
|
|
|
|
color_map = ((1,1,1),)*13
|
2012-08-06 10:50:18 +00:00
|
|
|
color_map_bg = (((1,1,1),)*13,((.8,.8,.8),)*13)
|
|
|
|
color_map_fg = (((0,0,0),)*13,((0,0,0),)*13)
|
2012-07-17 20:44:12 +00:00
|
|
|
box_shadow = False
|
|
|
|
text_shadow = False
|