Mercurial > pidgin.yaz
comparison console/libgnt/gntcolors.c @ 13850:0e1e59770cb0
[gaim-migrate @ 16308]
This is my first commit here. So don't yell at me if things get borked.
Also, I haven't looked at the auto-thingies yet. So don't puke at the
Makefiles.
Files in console/libgnt/ are for the 'Gaim/GObjectified Ncurses Toolkit'
library. Files in console/ uses libgaim and libgnt. Currently, only the
buddylist-ui is 'functional', ie. the buddy-list updates when someone
logs on or logs off. It still needs a lot of work.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 22 Jun 2006 08:33:54 +0000 |
parents | |
children | 41753203a94d |
comparison
equal
deleted
inserted
replaced
13849:8d1c55309e3c | 13850:0e1e59770cb0 |
---|---|
1 #include <ncursesw/ncurses.h> | |
2 #include "gntcolors.h" | |
3 | |
4 void gnt_init_colors() | |
5 { | |
6 /* XXX: Do some init_color()s */ | |
7 init_color(GNT_COLOR_BLACK, 0, 0, 0); | |
8 init_color(GNT_COLOR_RED, 1000, 0, 0); | |
9 init_color(GNT_COLOR_GREEN, 0, 1000, 0); | |
10 init_color(GNT_COLOR_BLUE, 0, 0, 1000); | |
11 init_color(GNT_COLOR_WHITE, 1000, 1000, 1000); | |
12 init_color(GNT_COLOR_GRAY, 799, 799, 799); | |
13 init_color(GNT_COLOR_DARK_GRAY, 256, 256, 256); | |
14 | |
15 /* Now some init_pair()s */ | |
16 init_pair(GNT_COLOR_NORMAL, GNT_COLOR_BLACK, GNT_COLOR_WHITE); | |
17 init_pair(GNT_COLOR_HIGHLIGHT, GNT_COLOR_BLUE, GNT_COLOR_GRAY); | |
18 init_pair(GNT_COLOR_SHADOW, GNT_COLOR_BLACK, GNT_COLOR_DARK_GRAY); | |
19 init_pair(GNT_COLOR_TITLE, GNT_COLOR_WHITE, GNT_COLOR_DARK_GRAY); | |
20 } | |
21 |