* @param active Whether or not the active version of the color is needed.
	 * @return The foreground color.
	 */
	public static Color getListForeground(boolean selected, boolean active) {
		if (selected) {
			Color color = UIManager.getColor("List.selectionForeground"); //$NON-NLS-1$
			if (!active) {
				Color background = getListBackground(selected, active);
				boolean isBright = Colors.isBright(color);
				if (isBright == Colors.isBright(background)) {
					return isBright ? Color.BLACK : Color.WHITE;
				}
			}
			return color;
		}
		return Color.BLACK;
	}