00001 00005 /* 00006 * GNT - The GLib Ncurses Toolkit 00007 * 00008 * GNT is the legal property of its developers, whose names are too numerous 00009 * to list here. Please refer to the COPYRIGHT file distributed with this 00010 * source distribution. 00011 * 00012 * This library is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 */ 00026 00027 #ifndef GNT_COLORS_H 00028 #define GNT_COLORS_H 00029 00030 #include <glib.h> 00031 00032 typedef enum 00033 { 00034 GNT_COLOR_NORMAL = 1, 00035 GNT_COLOR_HIGHLIGHT, /* eg. when a button is selected */ 00036 GNT_COLOR_DISABLED, /* eg. when a button is disabled */ 00037 GNT_COLOR_HIGHLIGHT_D, /* eg. when a button is selected, but some other window is in focus */ 00038 GNT_COLOR_TEXT_NORMAL, 00039 GNT_COLOR_TEXT_INACTIVE, /* when the entry is out of focus */ 00040 GNT_COLOR_MNEMONIC, 00041 GNT_COLOR_MNEMONIC_D, 00042 GNT_COLOR_SHADOW, 00043 GNT_COLOR_TITLE, 00044 GNT_COLOR_TITLE_D, 00045 GNT_COLOR_URGENT, /* this is for the 'urgent' windows */ 00046 GNT_COLORS 00047 } GntColorType; 00048 00049 enum 00050 { 00051 GNT_COLOR_BLACK = 0, 00052 GNT_COLOR_RED, 00053 GNT_COLOR_GREEN, 00054 GNT_COLOR_BLUE, 00055 GNT_COLOR_WHITE, 00056 GNT_COLOR_GRAY, 00057 GNT_COLOR_DARK_GRAY, 00058 GNT_TOTAL_COLORS 00059 }; 00060 00061 /* populate some default colors */ 00065 void gnt_init_colors(void); 00066 00070 void gnt_uninit_colors(void); 00071 00072 #if GLIB_CHECK_VERSION(2,6,0) 00073 00077 void gnt_colors_parse(GKeyFile *kfile); 00078 00083 void gnt_color_pairs_parse(GKeyFile *kfile); 00084 00085 #endif 00086 00087 #endif