public Color getColor(String name) {
		Color clr = cachedColors.get(name);
		if (clr != null)
			return clr;
		String str = settings.get(COLOR + name);
		if (str == null) {
			System.err.println("No color defined: " + name);
			return Color.gray;
		}
		try {
			clr = new Color(Integer.parseInt(str, 16));
		} catch (NumberFormatException e) {
			System.err.println("Cannot parse hex RGB " + str + ": " + e);
			return Color.gray;
		}

		cachedColors.put(name, clr);
		return clr;
	}