-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathconstants.py
More file actions
76 lines (58 loc) · 2.33 KB
/
constants.py
File metadata and controls
76 lines (58 loc) · 2.33 KB
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
# Width and Height of the project window
WINDOW_WIDTH = 360
WINDOW_HEIGHT = 720
# Post proportions
# X, Y represent the top left corner of the Post
POST_WIDTH = 0.87 * WINDOW_WIDTH
POST_HEIGHT = 0.41 * WINDOW_HEIGHT
POST_X_POS = 0.064 * WINDOW_WIDTH
POST_Y_POS = 0.2 * WINDOW_HEIGHT
# Like button proportions and position on the screen
LIKE_BUTTON_X_POS = 0.1 * WINDOW_WIDTH
LIKE_BUTTON_Y_POS = 0.622 * WINDOW_HEIGHT
LIKE_BUTTON_WIDTH = 0.067 * WINDOW_WIDTH
LIKE_BUTTON_HEIGHT = 0.033 * WINDOW_HEIGHT
# Add comment button proportions and position on the screen
COMMENT_BUTTON_X_POST = 0.195 * WINDOW_WIDTH
COMMENT_BUTTON_Y_POS = 0.622 * WINDOW_HEIGHT
COMMENT_BUTTON_WIDTH = 0.067 * WINDOW_WIDTH
COMMENT_BUTTON_HEIGHT = 0.033 * WINDOW_HEIGHT
SHARE_BUTTON_X_POST = 0.289 * WINDOW_WIDTH
SHARE_BUTTON_Y_POS = 0.622 * WINDOW_HEIGHT
SHARE_BUTTON_WIDTH = 0.067 * WINDOW_WIDTH
SHARE_BUTTON_HEIGHT = 0.033 * WINDOW_HEIGHT
# User name lines' position on the screen
USER_NAME_X_POS = 0.178 * WINDOW_WIDTH
USER_NAME_Y_POS = 0.156 * WINDOW_HEIGHT
# Location line shows the location of the post
# Location lines' position on the screen
LOCATION_TEXT_X_POS = 0.178 * WINDOW_WIDTH
LOCATION_TEXT_Y_POS = 0.172 * WINDOW_HEIGHT
# Description lines' position on the screen
DESCRIPTION_TEXT_X_POS = 0.111 * WINDOW_WIDTH
DESCRIPTION_TEXT_Y_POS = 0.678 * WINDOW_HEIGHT
# Like line shows how many likes the post has
# Like lines' position on the screen
LIKE_TEXT_X_POS = 0.111 * WINDOW_WIDTH
LIKE_TEXT_Y_POS = 0.658 * WINDOW_HEIGHT
# View more comments appears when there are more comments available than
# can be shown on the screen
# View more comments lines' position on the screen
VIEW_MORE_COMMENTS_X_POS = 0.111 * WINDOW_WIDTH
VIEW_MORE_COMMENTS_Y_POS = 0.85 * WINDOW_HEIGHT
VIEW_MORE_COMMENT_HEIGHT = 0.017 * WINDOW_HEIGHT
VIEW_MORE_COMMENT_WIDTH = 0.233 * WINDOW_WIDTH
# The location of the first comment on the screen and the comment line height
FIRST_COMMENT_X_POS = 0.111 * WINDOW_WIDTH
FIRST_COMMENT_Y_POS = 0.7 * WINDOW_HEIGHT
COMMENT_LINE_HEIGHT = 20
# The size of the text that on the post
TEXT_POST_FONT_SIZE = 40
NUM_OF_COMMENTS_TO_DISPLAY = 6
COMMENT_TEXT_SIZE = 16
UI_FONT_SIZE = 20
LINE_MAX_LENGTH = 20
BLACK = (0, 0, 0)
GREY = (50, 50, 50)
WHITE = (255, 255, 255)
LIGHT_GRAY = (134, 134, 134)