bugfixes
[fanfix.git] / src / jexer / bits / ColorTheme.java
index 60f706e3b10574d6dd40461194cf22525674a3c4..3c518ceed214eb84378de114492117d85de05d49 100644 (file)
@@ -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.
      *