1 package be
.nikiroo
.jvcard
.resources
;
3 import java
.io
.IOException
;
6 import be
.nikiroo
.utils
.resources
.Meta
;
7 import be
.nikiroo
.utils
.resources
.Meta
.Format
;
10 * Represent an element that can be coloured (foreground/background colours).
15 public enum ColorOption
{
16 @Meta(format
= Format
.COLOR
)
19 @Meta(format
= Format
.COLOR
)
21 @Meta(format
= Format
.COLOR
)
23 @Meta(format
= Format
.COLOR
)
26 @Meta(format
= Format
.COLOR
)
28 @Meta(format
= Format
.COLOR
)
31 @Meta(format
= Format
.COLOR
)
33 @Meta(format
= Format
.COLOR
)
35 @Meta(format
= Format
.COLOR
)
36 LINE_MESSAGE_QUESTION
, //
37 @Meta(format
= Format
.COLOR
)
40 @Meta(format
= Format
.COLOR
)
42 @Meta(format
= Format
.COLOR
)
43 CONTACT_LINE_SEPARATOR
, //
44 @Meta(format
= Format
.COLOR
)
45 CONTACT_LINE_SELECTED
, //
46 @Meta(format
= Format
.COLOR
)
47 CONTACT_LINE_SEPARATOR_SELECTED
, //
48 @Meta(format
= Format
.COLOR
)
49 CONTACT_LINE_DIRTY
, //
50 @Meta(format
= Format
.COLOR
)
51 CONTACT_LINE_DIRTY_SELECTED
, //
53 @Meta(format
= Format
.COLOR
)
55 @Meta(format
= Format
.COLOR
)
56 VIEW_CONTACT_NORMAL
, //
57 @Meta(format
= Format
.COLOR
)
58 VIEW_CONTACT_HIGHLIGHT
, //
59 @Meta(format
= Format
.COLOR
)
60 VIEW_CONTACT_NOTES_TITLE
, //
65 * Write the header found in the configuration <tt>.properties</tt> file of
66 * this {@link Bundle}.
69 * the {@link Writer} to write the header in
74 static public void writeHeader(Writer writer
) throws IOException
{
75 writer
.write("# Application colours\n");
77 writer
.write("# Note that you can define a colour in one of those 3 ways:\n");
78 writer
.write("# - WHITE: one of the ANSI colour names, in upper case\n");
79 writer
.write("# - @RRGGBB: a RGB code we will try to match using one of the 256 Terminal colours\n");
80 writer
.write("# - #RRGGBB: an exact RGB colour (please make sure your terminal supports this)\n");
81 writer
.write("# - 255: one of the 256 indexed colours of the terminal (the 16 first colours are theme-based) \n");
83 writer
.write("# ...and thus either for xxx_FG (foreground colour) or xxx_BG (background colour)\n");