git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git]
/
src
/
jexer
/
bits
/
ColorTheme.java
diff --git
a/src/jexer/bits/ColorTheme.java
b/src/jexer/bits/ColorTheme.java
index baf7685b4ef2331a2cb07a41e67700bc745a4c00..0c6f6e4a1ea35eccb6c1906948fa41ef6be75640 100644
(file)
--- a/
src/jexer/bits/ColorTheme.java
+++ b/
src/jexer/bits/ColorTheme.java
@@
-46,11
+46,19
@@
import java.util.TreeMap;
*/
public final class ColorTheme {
*/
public final class ColorTheme {
+ // ------------------------------------------------------------------------
+ // Variables --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* The current theme colors.
*/
private SortedMap<String, CellAttributes> colors;
/**
* The current theme colors.
*/
private SortedMap<String, CellAttributes> colors;
+ // ------------------------------------------------------------------------
+ // Constructors -----------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Public constructor sets the theme to the default.
*/
/**
* Public constructor sets the theme to the default.
*/
@@
-59,6
+67,10
@@
public final class ColorTheme {
setDefaultTheme();
}
setDefaultTheme();
}
+ // ------------------------------------------------------------------------
+ // ColorTheme -------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Retrieve the CellAttributes for a named theme color.
*
/**
* Retrieve the CellAttributes for a named theme color.
*
@@
-454,6
+466,11
@@
public final class ColorTheme {
color.setBackColor(Color.BLUE);
color.setBold(false);
colors.put("ttreeview.inactive", color);
color.setBackColor(Color.BLUE);
color.setBold(false);
colors.put("ttreeview.inactive", color);
+ color = new CellAttributes();
+ color.setForeColor(Color.BLACK);
+ color.setBackColor(Color.WHITE);
+ color.setBold(false);
+ colors.put("ttreeview.selected.inactive", color);
// TList
color = new CellAttributes();
// TList
color = new CellAttributes();
@@
-479,6
+496,11
@@
public final class ColorTheme {
color.setBackColor(Color.BLUE);
color.setBold(false);
colors.put("tlist.inactive", color);
color.setBackColor(Color.BLUE);
color.setBold(false);
colors.put("tlist.inactive", color);
+ color = new CellAttributes();
+ color.setForeColor(Color.BLACK);
+ color.setBackColor(Color.WHITE);
+ color.setBold(false);
+ colors.put("tlist.selected.inactive", color);
// TStatusBar
color = new CellAttributes();
// TStatusBar
color = new CellAttributes();