Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/layout.py
blob: acf52bba4e0876ca72d6d47bd9c7ff01724cf2c3 (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
''' Overall Frontend Layout'''
class Colors:
	grey 	= '#efefef'
	green 	= '#75b844'
	lime 	= '#cef474'
	yellow 	= '#ffff33'
	blue 	= '#94b0b4'
	black 	= '#000000'
	white	= '#ffffff'

class TextFormat:
	color = Colors().white
	size = 36
	background = None
	def __init__(self, color=None, size=None, background=None):
		if color != None: self.color = color
		if size != None: self.size = size
		if background != None: self.background = background
		

class Layout:
	user_name = "chris"
	port = 50123
	
	background = Colors().black;
	
	class Question:
		x = 20
		y = 20
		width = 860
		height = 650
		border = '3px ' + Colors().green;
		background = Colors().black;
		class Text:
			x = 20
			y = 12
			size = 46
			color = Colors().green;
		class Image:
			x = 10
			y = 60
		
	class MenuTop:
		x = 900
		y = 20
		width = 280
		height = 50
		border = '2px ' + Colors().blue
		class Text:
			x = 20
			y = 10
			size = 46
			color = Colors().green
			text = 'Menu'
			
	class MenuMain:
		x = 900
		y = 80
		width = 280
		height = 590
		border = '2px '  + Colors().blue
		background = Colors().black
		class Button:
			x = 9
			y = 10
			width = 260
			height = 40
			border = '2px ' +  Colors().green
			background = Colors().black
			class Text:
				x = 20
				y = 12
				size = 30
				color =  Colors().green;
			class Button_Directory:
				border = '2px ' +  Colors().blue
				background = Colors().black
				class Text:
					size = 30
					color =  Colors().green
				
	class Toolbar:
		x = 20
		y = 690
		width = 1160
		height = 100
		border = '2px '  + Colors().blue;
		background = Colors().black;
		class Text:
			size = 26
			color =  Colors().white;

		class FoundLine:
			x = 30
			y = 18
			width = 400
			height = 24	
			padding = 4
			image = "images/Emotes/face-grin_24px.png"
			image_width = 34
			image_left = 0
			class Outside:
				border = "1px " + Colors().blue
				background = Colors().black
			class Inside:
				border = "0px " + Colors().blue
				background = Colors().green
		class NotFoundLine:
			x = 30
			y = 52
			width = 400
			height = 24	
			padding = 4
			image = "images/Emotes/face-devil-grin_24px.png"
			image_width = 34
			image_left = 2
			class Outside:
				border = "1px " + Colors().blue
				background = Colors().black
			class Inside:
				border = "0px " + Colors().blue
				background = Colors().blue
		
	class Polygon:
		color =  Colors().yellow;
		
	class TextInput:
		class Box:
			x = 350
			y = 140
			width = 340
			height = 36
			background = Colors().black
			border = '2px ' + Colors().white
		class Text:
			size = 36
			color = Colors().white


	class QuestionEntry:
		class Box:
			background = Colors().black
			border = '2px ' + Colors().white
		class Text:
			size = 30
			color = Colors().white