diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-01-12 14:55:02 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-01-12 14:55:02 +0000 |
commit | 3d4e8889889e5e36302454225999f7e146d3219c (patch) | |
tree | fa315b999f531039df54ab7af8e99f7e8daad77c /contrib/dialog/dlg_colors.h | |
parent | b905920a72950a63c9782b4911d252bfac08db6e (diff) | |
download | FreeBSD-src-3d4e8889889e5e36302454225999f7e146d3219c.zip FreeBSD-src-3d4e8889889e5e36302454225999f7e146d3219c.tar.gz |
Update dialog to version 20100428. This changes the license under which
dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new
features and a new and better libdialog API. The existing libdialog will
be kept temporarily as libodialog for compatibility purposes until sade,
sysinstall and tzsetup have been either updated or replaced.
__FreeBSD_version is now 900030.
Discussed on: -current
Approved by: core
Obtained from: http://invisible-island.net/dialog
Diffstat (limited to 'contrib/dialog/dlg_colors.h')
-rw-r--r-- | contrib/dialog/dlg_colors.h | 182 |
1 files changed, 182 insertions, 0 deletions
diff --git a/contrib/dialog/dlg_colors.h b/contrib/dialog/dlg_colors.h new file mode 100644 index 0000000..f8d8b11 --- /dev/null +++ b/contrib/dialog/dlg_colors.h @@ -0,0 +1,182 @@ +/* + * $Id: dlg_colors.h,v 1.15 2007/02/18 18:23:29 tom Exp $ + * + * colors.h -- color attribute definitions + * + * Copyright 2000-2005,2006 Thomas E. Dickey + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License, version 2.1 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to + * Free Software Foundation, Inc. + * 51 Franklin St., Fifth Floor + * Boston, MA 02110, USA. + * + * An earlier version of this program lists as authors + * Savio Lam (lam836@cs.cuhk.hk) + */ + +#ifndef COLORS_H_included +#define COLORS_H_included 1 + +#include <dialog.h> + +/* + * Default color definitions (DLGC means "Dialog Color") + * + * DLGC_FG_xxx = foreground for "xxx" + * DLGC_BG_xxx = background for "xxx" + * DLGC_HL_xxx = highlight for "xxx" + */ +#define DLGC_FG_SCREEN COLOR_CYAN +#define DLGC_BG_SCREEN COLOR_BLUE +#define DLGC_HL_SCREEN TRUE + +#define DLGC_FG_SHADOW COLOR_BLACK +#define DLGC_BG_SHADOW COLOR_BLACK +#define DLGC_HL_SHADOW TRUE + +#define DLGC_FG_DIALOG COLOR_BLACK +#define DLGC_BG_DIALOG COLOR_WHITE +#define DLGC_HL_DIALOG FALSE + +#define DLGC_FG_TITLE COLOR_BLUE +#define DLGC_BG_TITLE COLOR_WHITE +#define DLGC_HL_TITLE TRUE + +#define DLGC_FG_BORDER COLOR_WHITE +#define DLGC_BG_BORDER COLOR_WHITE +#define DLGC_HL_BORDER TRUE + +#define DLGC_FG_BUTTON_ACTIVE COLOR_WHITE +#define DLGC_BG_BUTTON_ACTIVE COLOR_BLUE +#define DLGC_HL_BUTTON_ACTIVE TRUE + +#define DLGC_FG_BUTTON_INACTIVE COLOR_BLACK +#define DLGC_BG_BUTTON_INACTIVE COLOR_WHITE +#define DLGC_HL_BUTTON_INACTIVE FALSE + +#define DLGC_FG_BUTTON_KEY_ACTIVE COLOR_WHITE +#define DLGC_BG_BUTTON_KEY_ACTIVE COLOR_BLUE +#define DLGC_HL_BUTTON_KEY_ACTIVE TRUE + +#define DLGC_FG_BUTTON_KEY_INACTIVE COLOR_RED +#define DLGC_BG_BUTTON_KEY_INACTIVE COLOR_WHITE +#define DLGC_HL_BUTTON_KEY_INACTIVE FALSE + +#define DLGC_FG_BUTTON_LABEL_ACTIVE COLOR_YELLOW +#define DLGC_BG_BUTTON_LABEL_ACTIVE COLOR_BLUE +#define DLGC_HL_BUTTON_LABEL_ACTIVE TRUE + +#define DLGC_FG_BUTTON_LABEL_INACTIVE COLOR_BLACK +#define DLGC_BG_BUTTON_LABEL_INACTIVE COLOR_WHITE +#define DLGC_HL_BUTTON_LABEL_INACTIVE TRUE + +#define DLGC_FG_FORM_ITEM_READONLY COLOR_CYAN +#define DLGC_BG_FORM_ITEM_READONLY COLOR_WHITE +#define DLGC_HL_FORM_ITEM_READONLY TRUE + +#define DLGC_FG_INPUTBOX COLOR_BLACK +#define DLGC_BG_INPUTBOX COLOR_WHITE +#define DLGC_HL_INPUTBOX FALSE + +#define DLGC_FG_INPUTBOX_BORDER COLOR_BLACK +#define DLGC_BG_INPUTBOX_BORDER COLOR_WHITE +#define DLGC_HL_INPUTBOX_BORDER FALSE + +#define DLGC_FG_SEARCHBOX COLOR_BLACK +#define DLGC_BG_SEARCHBOX COLOR_WHITE +#define DLGC_HL_SEARCHBOX FALSE + +#define DLGC_FG_SEARCHBOX_TITLE COLOR_BLUE +#define DLGC_BG_SEARCHBOX_TITLE COLOR_WHITE +#define DLGC_HL_SEARCHBOX_TITLE TRUE + +#define DLGC_FG_SEARCHBOX_BORDER COLOR_WHITE +#define DLGC_BG_SEARCHBOX_BORDER COLOR_WHITE +#define DLGC_HL_SEARCHBOX_BORDER TRUE + +#define DLGC_FG_POSITION_INDICATOR COLOR_BLUE +#define DLGC_BG_POSITION_INDICATOR COLOR_WHITE +#define DLGC_HL_POSITION_INDICATOR TRUE + +#define DLGC_FG_MENUBOX COLOR_BLACK +#define DLGC_BG_MENUBOX COLOR_WHITE +#define DLGC_HL_MENUBOX FALSE + +#define DLGC_FG_MENUBOX_BORDER COLOR_WHITE +#define DLGC_BG_MENUBOX_BORDER COLOR_WHITE +#define DLGC_HL_MENUBOX_BORDER TRUE + +#define DLGC_FG_ITEM COLOR_BLACK +#define DLGC_BG_ITEM COLOR_WHITE +#define DLGC_HL_ITEM FALSE + +#define DLGC_FG_ITEM_SELECTED COLOR_WHITE +#define DLGC_BG_ITEM_SELECTED COLOR_BLUE +#define DLGC_HL_ITEM_SELECTED TRUE + +#define DLGC_FG_TAG COLOR_BLUE +#define DLGC_BG_TAG COLOR_WHITE +#define DLGC_HL_TAG TRUE + +#define DLGC_FG_TAG_SELECTED COLOR_YELLOW +#define DLGC_BG_TAG_SELECTED COLOR_BLUE +#define DLGC_HL_TAG_SELECTED TRUE + +#define DLGC_FG_TAG_KEY COLOR_RED +#define DLGC_BG_TAG_KEY COLOR_WHITE +#define DLGC_HL_TAG_KEY FALSE + +#define DLGC_FG_TAG_KEY_SELECTED COLOR_RED +#define DLGC_BG_TAG_KEY_SELECTED COLOR_BLUE +#define DLGC_HL_TAG_KEY_SELECTED TRUE + +#define DLGC_FG_CHECK COLOR_BLACK +#define DLGC_BG_CHECK COLOR_WHITE +#define DLGC_HL_CHECK FALSE + +#define DLGC_FG_CHECK_SELECTED COLOR_WHITE +#define DLGC_BG_CHECK_SELECTED COLOR_BLUE +#define DLGC_HL_CHECK_SELECTED TRUE + +#define DLGC_FG_UARROW COLOR_GREEN +#define DLGC_BG_UARROW COLOR_WHITE +#define DLGC_HL_UARROW TRUE + +#define DLGC_FG_DARROW COLOR_GREEN +#define DLGC_BG_DARROW COLOR_WHITE +#define DLGC_HL_DARROW TRUE + +#define DLGC_FG_ITEMHELP COLOR_WHITE +#define DLGC_BG_ITEMHELP COLOR_BLACK +#define DLGC_HL_ITEMHELP FALSE + +#define DLGC_FG_FORM_ACTIVE_TEXT COLOR_WHITE +#define DLGC_BG_FORM_ACTIVE_TEXT COLOR_BLUE +#define DLGC_HL_FORM_ACTIVE_TEXT TRUE + +#define DLGC_FG_FORM_TEXT COLOR_WHITE +#define DLGC_BG_FORM_TEXT COLOR_CYAN +#define DLGC_HL_FORM_TEXT TRUE + +/* End of default color definitions */ + +/* + * Global variables + */ + +typedef struct { + const char *name; + int value; +} color_names_st; + +#endif /* COLORS_H_included */ |