-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColorScheme.java
More file actions
286 lines (254 loc) · 6.65 KB
/
ColorScheme.java
File metadata and controls
286 lines (254 loc) · 6.65 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/**
* This class stores Color objects to be recalled for later use when
* designing the GUI. ColorScheme uses static methods that return Color
* objects.
* <p>
* Priscilla was primarily responsible for the implementation of this class.
*
* @author Priscilla
* @version December 2 2014
*/
import java.awt.Color;
public class ColorScheme {
/**
* Returns a Color object used for the GUI background.
*
* @return GUI background color
*/
public static Color background(){
return new Color(188,231,241);
}
/**
* Returns a Color object used for dark outlined borders.
*
* @return GUI dark color
*/
public static Color dark(){
return new Color(65,65,65);
}
/**
* Returns a Color object used for labels.
*
* @return GUI label color
*/
public static Color labels() {
return new Color(65,65,65);
}
/**
* Returns a Color object used for the instructions button in MainMenuPanel.
*
* @return MainMenuPanel instructions button color
*/
public static Color instructions() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for the create button in MainMenuPanel.
*
* @return MainMenuPanel create button color
*/
public static Color create() {
return new Color(255,201,14);
}
/**
* Returns a Color object used for the random level button in MainMenuPanel.
*
* @return MainMenuPanel random button color
*/
public static Color random() {
return new Color(255,127,39);
}
/**
* Returns a Color object used for the play button in MainMenuPanel.
*
* @return MainMenuPanel play button color
*/
public static Color play() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for the play custom button in MainMenuPanel.
*
* @return MainMenuPanel play custom button color
*/
public static Color playCustom() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for the next button in InstructionsPanel.
*
* @return InstructionsPanel next/previous button color
*/
public static Color nextPrevious() {
return new Color(255,127,39);
}
/**
* Returns a Color object used for the play button in InstructionsPanel.
*
* @return InstructionsPanel play button color
*/
public static Color skipPlay() {
return new Color(255,201,14);
}
/**
* Returns a Color object used for the next level button in LevelPanel.
*
* @return LevelPanel next level button color
*/
public static Color next() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for the main menu button in LevelPanel.
*
* @return LevelPanel main menu button color
*/
public static Color main() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for the undo button in LevelPanel.
*
* @return LevelPanel undo button color
*/
public static Color undo() {
return new Color(255,127,39);
}
/**
* Returns a Color object used for the reset button in LevelPanel.
*
* @return LevelPanel reset button color
*/
public static Color reset() {
return new Color(255,201,14);
}
/**
* Returns a Color object used for the hint button in LevelPanel.
*
* @return LevelPanel reset hint color
*/
public static Color hint() {
return new Color(34,177,76);
}
/**
* Returns a Color object used for the hint path in GridPanel.
*
* @return GridPanel hint path color
*/
public static Color hintPath() {
return new Color(154, 249, 108);
}
/**
* Returns a Color object used for a block tile in GridPanel.
*
* @return GridPanel block tile color
*/
public static Color block() {
return new Color(65,65,65);
}
/**
* Returns a Color object used for the target tile in GridPanel.
*
* @return GridPanel target tile color
*/
public static Color target(){
return new Color(255,127,39);
}
/**
* Returns a Color object used for the character player piece tile
* in GridPanel.
*
* @return GridPanel character play piece tile color
*/
public static Color character(){
return new Color(255,201,14);
}
/**
* Returns a Color object used for the shaded path in GridPanel.
*
* @return GridPanel shaded path color
*/
public static Color path(){
return new Color(255,231,145);
}
/**
* Returns a Color object used for the generate file button in CreatePanel.
*
* @return CreatePanel generate file button color
*/
public static Color generate() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for unselected radio buttons in CreatePanel.
*
* @return CreatePanel unselected radio button color
*/
public static Color unselected() {
return new Color(200,200,200);
}
/**
* Returns a Color object used for the warning label in CreatePanel.
*
* @return CreatePanel warning label color
*/
public static Color warning() {
return new Color(237,28,36);
}
/**
* Returns a Color object used for the save button in GeneratePanel.
*
* @return GeneratePanel save button color
*/
public static Color save() {
return new Color(112,146,190);
}
/**
* Returns a Color object used for the bad status label in GeneratePanel.
*
* @return GeneratePanel bad status label color
*/
public static Color bad() {
return new Color(237,28,36);
}
/**
* Returns a Color object used for the good status label in GeneratePanel.
*
* @return GeneratePanel good status label color
*/
public static Color good() {
return new Color(34,177,76);
}
/**
* Returns a Color object used for the create again button in GeneratePanel.
*
* @return GeneratePanel createAgain button color
*/
public static Color createAgain() {
return new Color(255,127,39);
}
/**
* Returns a Color object used for the play level button in GeneratePanel.
*
* @return GeneratePanel playLevel button color
*/
public static Color playLevel() {
return new Color(255,201,14);
}
/**
* Returns a Color object used for the delete button in CustomLevelDisplayPanel.
*
* @return CustomLevelDisplayPanel delete button color
*/
public static Color delete() {
return new Color(1,1,1);
}
/**
* Returns a Color object used for the rename button in CustomLevelDisplayPanel.
*
* @return CustomLevelDisplayPanel rename button color
*/
public static Color rename() {
return new Color(1,1,1);
}
}