-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguisettings.py
executable file
·38 lines (30 loc) · 1.12 KB
/
guisettings.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
# -*- coding: iso-8859-1 -*-
# Skapat av Christian Davén 2004
import wx
import sys
colour_lines = wx.Colour(128, 128, 128)
colour_event_text = wx.Colour(0, 0, 0)
colour_event_inactive = wx.Colour(128, 128, 128)
bgcolour_default = None
bgcolour_daylabel = wx.Colour(255, 255, 255)
bgcolour_schedule = wx.Colour(192, 192, 192)
bgcolour_schedule_today = wx.Colour(255, 255, 255)
bgcolour_schedule_holiday = wx.Colour(204, 153, 153)
bgcolour_hours = wx.Colour(255, 255, 204)
bgcolour_event = wx.Colour(51, 153, 255)
bgcolour_event_examination = wx.Colour(255, 51, 51)
bgcolour_event_subscribed = wx.Colour(51, 153, 51)
bgcolour_event_inactive = wx.Colour(204, 204, 204)
font_default = None
def getSystemSettings():
"""
I wxPython 2.5 får dessa funktioner inte anropas innan
programmet är startat.
"""
global bgcolour_default
global font_default
bgcolour_default = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DLIGHT)
if sys.platform == "win32":
font_default = wx.SystemSettings_GetFont(wx.SYS_ICONTITLE_FONT)
else:
font_default = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)