/
IGamaColors.java
49 lines (43 loc) · 1.98 KB
/
IGamaColors.java
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
/*********************************************************************************************
*
* 'IGamaColors.java, in plugin ummisco.gama.ui.shared, is part of the source code of the GAMA modeling and simulation
* platform. (v. 1.8.1)
*
* (c) 2007-2020 UMI 209 UMMISCO IRD/UPMC & Partners
*
* Visit https://github.com/gama-platform/gama for license information and developers contact.
*
*
**********************************************************************************************/
package ummisco.gama.ui.resources;
import static msi.gama.application.workbench.ThemeHelper.isDark;
import static ummisco.gama.ui.resources.GamaColors.get;
import static ummisco.gama.ui.resources.GamaColors.system;
import static ummisco.gama.ui.resources.GamaIcons.create;
import org.eclipse.swt.SWT;
import ummisco.gama.ui.resources.GamaColors.GamaUIColor;
/**
* Class IGamaColors.
*
* @author drogoul
* @since 24 nov. 2014
*
*/
public interface IGamaColors {
GamaUIColor BLUE = isDark() ? GamaColors.get(get(create("palette/palette.blue2")).lighter())
: get(create("palette/palette.blue2"));
GamaUIColor ERROR = isDark() ? GamaColors.get(get(create("palette/palette.red2")).lighter())
: get(create("palette/palette.red2"));
GamaUIColor OK = isDark() ? GamaColors.get(get(create("palette/palette.green2")).lighter())
: get(create("palette/palette.green2"));
GamaUIColor WARNING = get(create("palette/palette.orange2"));
GamaUIColor NEUTRAL = get(create("palette/palette.gray2"));
GamaUIColor TOOLTIP = get(create("palette/palette.yellow2"));
GamaUIColor GRAY_LABEL = get(0x88, 0x88, 0x88);
GamaUIColor VERY_LIGHT_GRAY = get(245, 245, 245);
GamaUIColor DARK_GRAY = new GamaUIColor(system(SWT.COLOR_DARK_GRAY));
GamaUIColor WHITE = new GamaUIColor(system(SWT.COLOR_WHITE), system(SWT.COLOR_WHITE));
GamaUIColor BLACK = new GamaUIColor(system(SWT.COLOR_BLACK));
GamaUIColor PARAMETERS_BACKGROUND = (isDark() ? get(120, 120, 120) : get(255, 255, 255));
GamaUIColor DARK_ORANGE = get(225, 92, 15);
}