mirror of
https://github.com/oDinZu/callirhoe.git
synced 2025-02-22 00:04:52 -05:00
updated styles
+transparent bw git-svn-id: https://callirhoe.googlecode.com/svn/trunk@113 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
parent
22eaf9c251
commit
6511ce4151
53
style/bw_gfs.py
Normal file
53
style/bw_gfs.py
Normal file
@ -0,0 +1,53 @@
|
||||
# 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/
|
||||
|
||||
# --- style.bw_gfs ---
|
||||
|
||||
"""module defining Greek Font Society fonts for black & white style"""
|
||||
|
||||
import bw as base
|
||||
|
||||
# day of week
|
||||
class dow(base.dow):
|
||||
font = "GFS Neohellenic"
|
||||
|
||||
# day of month
|
||||
class dom(base.dom):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_weekend(base.dom_weekend):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_holiday(base.dom_holiday):
|
||||
font = ("GFS Bodoni",)
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_weekend_holiday(base.dom_weekend_holiday):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_multi(base.dom_multi):
|
||||
font = ("GFS Bodoni",)
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_weekend_multi(base.dom_weekend_multi):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class month(base.month):
|
||||
font = ("GFS Artemisia", 0, 1)
|
@ -17,7 +17,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/
|
||||
|
||||
# --- style.bw ---
|
||||
# --- style.bw_sparse ---
|
||||
|
||||
"""module defining the black & white sparse style
|
||||
|
||||
|
77
style/bw_transparent.py
Normal file
77
style/bw_transparent.py
Normal file
@ -0,0 +1,77 @@
|
||||
# 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/
|
||||
|
||||
# --- style.bw_transparent ---
|
||||
|
||||
"""module defining the black & white transparent style"""
|
||||
|
||||
_OPACITY = 0.2
|
||||
|
||||
class dow:
|
||||
"""day of week style"""
|
||||
fg = (.33,.33,.33)
|
||||
frame_thickness = 0.1
|
||||
frame = (0.8,0.8,0.8)
|
||||
font = "Arial"
|
||||
|
||||
class dom:
|
||||
"""day of month style"""
|
||||
bg = (1,1,1,_OPACITY)
|
||||
frame = (0.8,0.8,0.8)
|
||||
frame_thickness = 0.1
|
||||
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):
|
||||
"""day of month style (weekend)"""
|
||||
bg = (0.95,0.95,0.95,_OPACITY)
|
||||
fg = (0,0,0)
|
||||
font = ("Times New Roman", 0, 1)
|
||||
|
||||
class dom_holiday(dom):
|
||||
"""day of month (holiday, indicated by the OFF flag in the holiday file)"""
|
||||
fg = (0,0,0)
|
||||
bg = (0.95,0.95,0.95,_OPACITY)
|
||||
header = (0,0,0)
|
||||
font = ("Times New Roman", 0, 1)
|
||||
|
||||
class dom_weekend_holiday(dom_holiday):
|
||||
"""day of month (weekend & holiday)"""
|
||||
fg = (0,0,0)
|
||||
bg = (0.95,0.95,0.95,_OPACITY)
|
||||
|
||||
class dom_multi(dom_holiday):
|
||||
"""day of month (multi-day holiday)"""
|
||||
pass
|
||||
|
||||
class dom_weekend_multi(dom_weekend_holiday):
|
||||
"""day of month (weekend in multi-day holiday)"""
|
||||
pass
|
||||
|
||||
class month:
|
||||
"""month style"""
|
||||
font = ("Times New Roman", 0, 1)
|
||||
frame = (0,0,0)
|
||||
frame_thickness = 0.2
|
||||
bg = (1,1,1,_OPACITY)
|
||||
color_map = ((1,1,1),)*13
|
||||
color_map_bg = (((1,1,1,_OPACITY),)*13,((.8,.8,.8,_OPACITY),)*13)
|
||||
color_map_fg = (((0,0,0),)*13,((0,0,0),)*13)
|
||||
box_shadow = False
|
||||
text_shadow = False
|
53
style/bw_transparent_gfs.py
Normal file
53
style/bw_transparent_gfs.py
Normal file
@ -0,0 +1,53 @@
|
||||
# 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/
|
||||
|
||||
# --- style.bw_transparent_gfs ---
|
||||
|
||||
"""module defining Greek Font Society fonts for black & white transparent style"""
|
||||
|
||||
import bw_transparent as base
|
||||
|
||||
# day of week
|
||||
class dow(base.dow):
|
||||
font = "GFS Neohellenic"
|
||||
|
||||
# day of month
|
||||
class dom(base.dom):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_weekend(base.dom_weekend):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_holiday(base.dom_holiday):
|
||||
font = ("GFS Bodoni",)
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_weekend_holiday(base.dom_weekend_holiday):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_multi(base.dom_multi):
|
||||
font = ("GFS Bodoni",)
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class dom_weekend_multi(base.dom_weekend_multi):
|
||||
font = "GFS Bodoni"
|
||||
header_font = footer_font = "GFS Elpis"
|
||||
|
||||
class month(base.month):
|
||||
font = ("GFS Artemisia", 0, 1)
|
@ -14,7 +14,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/
|
||||
|
||||
# --- style.rainbow ---
|
||||
# --- style.rainbow_gfs ---
|
||||
|
||||
"""module defining rainbow color & gfs style"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user