<commit_before>/*******************************************************************************
 * Copyright (c) 2004 - 2006 University Of British Columbia and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     University Of British Columbia - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylar.internal.tasklist.ui;

import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Display;

/**
 * @author <NAME>
 */
public class TaskListColorsAndFonts {

	public static final Color BACKGROUND_WHITE = new Color(Display.getDefault(), 255, 255, 255);

	public static final Color BACKGROUND_ARCHIVE = new Color(Display.getDefault(), 199, 199, 237);

	public static final Color COLOR_GRAY_LIGHT = new Color(Display.getDefault(), 170, 170, 170);

	public static final Color COLOR_TASK_COMPLETED = new Color(Display.getDefault(), 170, 170, 170);

	public static final Color COLOR_TASK_ACTIVE = new Color(Display.getDefault(), 36, 22, 50);

	public static final Color COLOR_TASK_OVERDUE = new Color(Display.getDefault(), 200, 10, 30);

	public static final Color COLOR_HYPERLINK = new Color(Display.getDefault(), 0, 0, 255);
	
	public static final Font BOLD = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);

	public static final Font ITALIC = JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT);

	public static void dispose() {
		BACKGROUND_WHITE.dispose();
		BACKGROUND_ARCHIVE.dispose();
		COLOR_GRAY_LIGHT.dispose();
		COLOR_TASK_COMPLETED.dispose();
		COLOR_TASK_ACTIVE.dispose();
		COLOR_TASK_OVERDUE.dispose();
		COLOR_HYPERLINK.dispose();
		BOLD.dispose();
		ITALIC.dispose();
	}

}<commit_msg>Progress on: 129399: provide a task history view https://bugs.eclipse.org/bugs/show_bug.cgi?id=129399<commit_after>/*******************************************************************************
 * Copyright (c) 2004 - 2006 University Of British Columbia and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     University Of British Columbia - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylar.internal.tasklist.ui;

import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Display;

/**
 * @author <NAME>
 */
public class TaskListColorsAndFonts {

	public static final Color BACKGROUND_WHITE = new Color(Display.getDefault(), 255, 255, 255);

	public static final Color BACKGROUND_ARCHIVE = new Color(Display.getDefault(), 199, 199, 237);

	public static final Color COLOR_GRAY_LIGHT = new Color(Display.getDefault(), 170, 170, 170);

	public static final Color COLOR_TASK_COMPLETED = new Color(Display.getDefault(), 170, 170, 170);

	public static final Color COLOR_TASK_ACTIVE = new Color(Display.getDefault(), 36, 22, 50);

	public static final Color COLOR_TASK_OVERDUE = new Color(Display.getDefault(), 200, 10, 30);

	public static final Color COLOR_HYPERLINK = new Color(Display.getDefault(), 0, 0, 255);

	public static final Font BOLD = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);

	public static final Font ITALIC = JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT);

	/**
	 * NOTE: disposal of JFaceResources fonts handled by registry.
	 */
	public static void dispose() {
		BACKGROUND_WHITE.dispose();
		BACKGROUND_ARCHIVE.dispose();
		COLOR_GRAY_LIGHT.dispose();
		COLOR_TASK_COMPLETED.dispose();
		COLOR_TASK_ACTIVE.dispose();
		COLOR_TASK_OVERDUE.dispose();
		COLOR_HYPERLINK.dispose();
	} 

}
{'fraction_non_alphanumeric': 0.17013232514177692, 'fraction_numerical': 0.034026465028355386, 'mean_word_length': 5.645211930926217, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3026254', 'n_tokens_mistral': 1393, 'n_tokens_neox': 1192, 'n_words': 334}