-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
66 lines (57 loc) · 2.28 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Calendar, Graphical calendar applet with novel interface
#
# settings.py
#
# Copyright (c) 2010, Brandon Lewis <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
import cairo
import pango
## general options
width = 600
height = 400
day_width = width / 8
hour_height = 50
default_font = pango.FontDescription("Sans 8")
## colors
text_color = cairo.SolidPattern(0, 0, 0, .75)
cursor_color = cairo.SolidPattern(0, 0, 0, 1)
# grid
grid_bg_color = cairo.SolidPattern(1.0, 1.0, 1.0)
grid_line_color = cairo.SolidPattern(0.8, 0.8, 0.8)
comfort_line_color = grid_line_color
grid_line_width = 1.0
even_month_bg_color = cairo.SolidPattern(1.0, 1.0, 1.0)
odd_month_bg_color = cairo.SolidPattern(0.95, 0.95, 0.95)
comfort_line_color = grid_line_color
# headings
heading_outline_color = grid_line_color
weekday_bg_color = cairo.SolidPattern(0.75, 0.85, 0.75)
weekend_bg_color = cairo.SolidPattern(0.75, 0.75, 0.85)
hour_heading_color = grid_bg_color
corner_bg_color = cairo.SolidPattern(0.75, 0.75, 0.75)
gloss_gradient = cairo.LinearGradient(0, 0, 0, 1)
gloss_gradient.add_color_stop_rgba(0, 1, 1, 1, 0.8)
gloss_gradient.add_color_stop_rgba(0.5, 1, 1, 1, 0.20)
# selection
handle_bg_color = cairo.SolidPattern(0.0, 0.0, 0.0, 0.55)
handle_arrow_color = cairo.SolidPattern(1, 1, 1)
marquee_fill_color = cairo.SolidPattern(0, 0, 0, 0.25)
marquee_text_color = cairo.SolidPattern(0, 0, 0, 0.75)
# default event color
default_event_bg_color = cairo.SolidPattern(0.15, 0.15, 0.70, 0.5)
default_event_outline_color = cairo.SolidPattern(0.15, 0.15, 0.70, 0.85)
default_event_text_color = cairo.SolidPattern(0.15, 0.15, 0.70, 0.9)