X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FColorTheme.java;h=3c518ceed214eb84378de114492117d85de05d49;hb=91c9a8376f979d2b3df43f14519a30a183d332c5;hp=60f706e3b10574d6dd40461194cf22525674a3c4;hpb=847a4bc53c549c277d479ee904ab45be7f5e4dec;p=fanfix.git diff --git a/src/jexer/bits/ColorTheme.java b/src/jexer/bits/ColorTheme.java index 60f706e..3c518ce 100644 --- a/src/jexer/bits/ColorTheme.java +++ b/src/jexer/bits/ColorTheme.java @@ -68,6 +68,17 @@ public final class ColorTheme { return attr; } + /** + * Set the color for a named theme color. + * + * @param name theme color name, e.g. "twindow.border" + * @param color the new color to associate with name, e.g. bold yellow on + * blue + */ + public void setColor(final String name, final CellAttributes color) { + colors.put(name, color); + } + /** * Save the color theme mappings to an ASCII file. *