-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
102 lines (69 loc) · 2.11 KB
/
constants.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
from win32api import GetSystemMetrics
# Screen dimensions
S_WIDTH = GetSystemMetrics(0)
S_HEIGHT = GetSystemMetrics(1)
global description_window_open
global add_task_window_open
global completed_window_open
global notes_window_open
# Helps prevent multiple windows of same type from opening
description_window_open = False
add_task_window_open = False
completed_window_open = False
notes_window_open = False
# Center an app window on the monitor
def window_placer():
width = S_WIDTH//2
height = S_HEIGHT//2
return width, height
# Font
PROJ_FONT = 'Open Sans'
###########
# Sizes
##########
# TASK_BX_LIST = []
# TASK_BX_HEIGHT = 50
# TASK_BX_WIDTH = 100
WNDW_WIDTH = 600
WNDW_HEIGHT = 550
# The 'Add Task' button size and screen location information
ADD_ICON_SIZE = 40
ADD_ICON_COORDS = [WNDW_WIDTH//2-(ADD_ICON_SIZE//2), WNDW_HEIGHT-120]
#######################
# Colors
######################
RED = (250, 82, 82)
DARK_BLUE = (0, 38, 59)
GREEN = (105, 219, 124) # Like Pistachio Green
LIGHT_GREEN = (140, 233, 154)
LIGHTSABER_GREEN = (47, 249, 36)
ORANGE_ALPHA = (255, 161, 10, 255) # Dark Orange
OXFORD_BLUE_ALPHA = (5, 32, 74, 255)
OXFORD_BLUE = (5, 32, 74) # Oxford Blue
MOUNTAIN_MEADOW = (2, 195, 154) # Shade of green
BLACK_ALPHA = (2, 2, 10, 255) # 'Rich Black FOGRA'
# Colors used directly in gui.py
GREY = (206, 212, 218)
BLUE = (165, 216, 255)
# _________________________
# Blue (#007BFF) and Green (#2E8B57)
AI_BLUE = (0, 123, 255)
AI_BLUE_ALPHA = (0, 123, 255, 255)
AI_LIGHT_BLUE = (173, 216, 230)
AI_LIGHT_BLUE_ALPHA = (173, 216, 230, 255)
AI_GREEN = (46, 139, 87)
AI_GREEN_ALPHA = (46, 139, 87, 255)
ALERT_COLOR = (240, 62, 62, 255) # Shade of Red
TASK_LABELS_COLOR = AI_GREEN_ALPHA
TASK_LABELS_BG_COLOR = AI_LIGHT_BLUE
TEXT_COLOR = BLACK_ALPHA
PROJECT_TITLE_COLOR = AI_BLUE_ALPHA
TASK_BTN_COLOR = DARK_BLUE
ADD_TASK_BTN_COLOR = GREEN
FINISH_PROJECT_BG_COLOR = LIGHT_GREEN
# Might want to not highlight the completed tab if it's empty.
COMPLETED_BG_COLOR = LIGHT_GREEN
# Variables for mouse-hover
RED_HOVER = RED
COMPLETED_HOVER = LIGHTSABER_GREEN
BRIGHT_GREEN_HOVER = LIGHTSABER_GREEN