1 package org.catacomb.interlish.content;
2
3
4 import java.awt.Color;
5
6
7
8 public class ColorSet {
9
10 Color background;
11 Color foreground;
12
13 Color dataBackground;
14 Color dataForeground;
15
16
17
18 public ColorSet() {
19 background = new Color(80, 80, 140);
20 foreground = Color.white;
21
22 dataBackground = new Color(20, 20, 70);
23 dataForeground = Color.white;
24
25 }
26
27
28 public ColorSet copy() {
29 ColorSet ret = new ColorSet();
30 ret.background = background;
31 ret.foreground = foreground;
32 ret.dataBackground = dataBackground;
33 ret.dataForeground = dataForeground;
34 return ret;
35 }
36
37
38
39 public void setGray() {
40 foreground = Color.black;
41 background = new Color(0xe0e0e0);
42 }
43
44
45 public Color getBackground() {
46 return background;
47 }
48
49 public Color getBg() {
50 return background;
51 }
52
53 public void setBackground(Color background) {
54 this.background = background;
55 }
56
57
58 public Color getDataBackground() {
59 return dataBackground;
60 }
61
62
63 public void setDataBackground(Color dataBackground) {
64 this.dataBackground = dataBackground;
65 }
66
67
68 public Color getDataForeground() {
69 return dataForeground;
70 }
71
72
73 public void setDataForeground(Color dataForeground) {
74 this.dataForeground = dataForeground;
75 }
76
77
78 public Color getForeground() {
79 return foreground;
80 }
81
82 public Color getFg() {
83 return foreground;
84 }
85
86 public void setForeground(Color foreground) {
87 this.foreground = foreground;
88 }
89
90 public void setBg(Color color) {
91 background = color;
92
93 }
94
95 }