mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
theme->default_color is now used again, added default_bold_color which
is used with default bolds since A_NORMAL|A_BOLD doesn't seem to do anything with curses.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1206 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
98a73539ae
commit
355e7dd841
4 changed files with 18 additions and 12 deletions
|
|
@ -213,11 +213,12 @@ void set_color(WINDOW *window, int col)
|
|||
|
||||
if (!use_colors)
|
||||
attr = (col & 0x70) ? A_REVERSE : 0;
|
||||
else {
|
||||
attr = (col & ATTR_COLOR8) ?
|
||||
(A_DIM | COLOR_PAIR(63)) :
|
||||
(COLOR_PAIR((col&7) + (col&0x70)/2));
|
||||
}
|
||||
else if (col & ATTR_COLOR8)
|
||||
attr = (A_DIM | COLOR_PAIR(63));
|
||||
else if ((col & 0x77) == 0)
|
||||
attr = A_NORMAL;
|
||||
else
|
||||
attr = (COLOR_PAIR((col&7) + (col&0x70)/2));
|
||||
|
||||
if (col & 0x08) attr |= A_BOLD;
|
||||
if (col & 0x80) attr |= A_BLINK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue