1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 06:25:42 +02:00

Add color "darkgray", add support for background with light color, fix color "black" (bug #23882)

This commit is contained in:
Sebastien Helleu
2009-12-13 23:29:08 +01:00
parent 9e83e74ce4
commit d4b0b98933
14 changed files with 113 additions and 195 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.1-dev, 2009-12-05
v0.3.1-dev, 2009-12-13
Version 0.3.1 (under dev!)
@@ -40,6 +40,8 @@ Version 0.3.1 (under dev!)
* xfer: add missing charset decoding/encoding for IRC DCC chat (bug #27482)
* ruby: support of Ruby >= 1.9.1 (patch #6989)
* fifo: remove old pipes before creating new pipe
* gui: add color "darkgray", add support for background with light color
* gui: fix color "black" (bug #23882)
* gui: fix message "Day changed to", sometimes displayed at wrong time
(bug #26959)
* gui: fix bug with URL selection in some terminals (caused by horizontal lines)
+5 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-09-14 10:56+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2133,6 +2133,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr "Terminál ztracen, ukončuji WeeChat..."
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr "Obdržen signál %s, ukončuji WeeChat.."
+5 -1
View File
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-12-05 11:30+0100\n"
"Last-Translator: Nils G <weechatter@arcor.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2204,6 +2204,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr "Terminal verloren, beende WeeChat..."
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr "Signal %s empfangen, beende WeeChat..."
+5 -1
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-09-06 21:25+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2060,6 +2060,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr ""
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr ""
+6 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"PO-Revision-Date: 2009-12-05 11:23+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-12-13 22:11+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -2184,6 +2184,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr "Terminal perdu, sortie de WeeChat..."
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr "TERM=\"%s\", %d couleurs disponibles, %d paires"
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr "Signal %s reçu, sortie de WeeChat..."
+5 -1
View File
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-09-20 13:51+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2054,6 +2054,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr ""
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr ""
+5 -1
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Weechat 0.31-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-11-26 01:26+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2169,6 +2169,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr "Terminale perduto, chiusura di WeeChat..."
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr "Ricevuto segnale %s, chiusura di WeeChat..."
+5 -1
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-09-06 21:25+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: Polish\n"
@@ -2164,6 +2164,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr "Utracono terminal, wychodzę z WeeChat..."
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr "Otrzymano sygnał %s, wychodzę z WeeChat..."
+5 -1
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: 2009-09-20 13:50+0200\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2063,6 +2063,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr ""
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr ""
+5 -1
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2009-12-05 11:22+0100\n"
"POT-Creation-Date: 2009-12-13 22:11+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1756,6 +1756,10 @@ msgstr ""
msgid "Terminal lost, exiting WeeChat..."
msgstr ""
#, c-format
msgid "TERM=\"%s\", %d colors available, %d pairs"
msgstr ""
#, c-format
msgid "Signal %s received, exiting WeeChat..."
msgstr ""
File diff suppressed because it is too large Load Diff
+8
View File
@@ -155,6 +155,14 @@ gui_main_init ()
gui_bar_window_create_win (ptr_bar_win);
}
}
/* display infos about terminal and colors */
if (weechat_debug_core >= 1)
{
gui_chat_printf (NULL,
_("TERM=\"%s\", %d colors available, %d pairs"),
getenv ("TERM"), COLORS, COLOR_PAIRS);
}
}
/*
+9 -11
View File
@@ -233,7 +233,7 @@ gui_window_clear (WINDOW *window, int bg)
color = gui_weechat_colors[bg].foreground;
wbkgdset (window,
' ' | COLOR_PAIR (((color == -1) || (color == 99)) ?
63 : color * 8));
gui_color_last_pair : (color * gui_color_num_bg) + 1));
werase (window);
wmove (window, 0, 0);
}
@@ -290,14 +290,14 @@ gui_window_set_color (WINDOW *window, int fg, int bg)
if (((fg == -1) || (fg == 99))
&& ((bg == -1) || (bg == 99)))
wattron (window, COLOR_PAIR(63));
wattron (window, COLOR_PAIR(gui_color_last_pair));
else
{
if ((fg == -1) || (fg == 99))
fg = COLOR_WHITE;
if ((bg == -1) || (bg == 99))
bg = 0;
wattron (window, COLOR_PAIR((bg * 8) + fg));
wattron (window, COLOR_PAIR((bg * gui_color_num_bg) + fg + 1));
}
}
@@ -310,11 +310,6 @@ gui_window_set_weechat_color (WINDOW *window, int num_color)
{
if ((num_color >= 0) && (num_color < GUI_COLOR_NUM_COLORS))
{
/*
wattroff (window, A_BOLD | A_UNDERLINE | A_REVERSE);
wattron (window, COLOR_PAIR(gui_color_get_pair (num_color)) |
gui_color[num_color]->attributes);
*/
gui_window_reset_style (window, num_color);
wattron (window, gui_color[num_color]->attributes);
gui_window_set_color (window,
@@ -338,7 +333,8 @@ gui_window_set_custom_color_fg_bg (WINDOW *window, int fg, int bg)
wattron (window, gui_weechat_colors[fg].attributes);
gui_window_set_color (window,
gui_weechat_colors[fg].foreground,
gui_weechat_colors[bg].foreground);
(gui_color_num_bg > 8) ?
gui_weechat_colors[bg].background : gui_weechat_colors[bg].foreground);
}
}
@@ -380,7 +376,8 @@ gui_window_set_custom_color_bg (WINDOW *window, int bg)
current_fg = window_current_style_fg;
gui_window_set_color_style (window, current_attr);
gui_window_set_color (window, current_fg,
gui_weechat_colors[bg].foreground);
(gui_color_num_bg > 8) ?
gui_weechat_colors[bg].background : gui_weechat_colors[bg].foreground);
}
}
@@ -392,7 +389,8 @@ void
gui_window_clrtoeol_with_current_bg (WINDOW *window)
{
wbkgdset (window,
' ' | COLOR_PAIR ((window_current_style_bg < 0) ? 63 : window_current_style_bg * 8));
' ' | COLOR_PAIR ((window_current_style_bg < 0) ?
gui_color_last_pair : (window_current_style_bg * gui_color_num_bg) + 1));
wclrtoeol (window);
}
+3 -1
View File
@@ -36,7 +36,7 @@ struct t_gui_buffer;
struct t_gui_window;
struct t_gui_bar_window;
#define GUI_CURSES_NUM_WEECHAT_COLORS 15
#define GUI_CURSES_NUM_WEECHAT_COLORS 16
#define GUI_WINDOW_OBJECTS(window) \
((struct t_gui_window_curses_objects *)(window->gui_objects))
@@ -57,6 +57,8 @@ struct t_gui_bar_window_curses_objects
extern int gui_term_cols, gui_term_lines;
extern struct t_gui_color gui_weechat_colors[];
extern int gui_color_last_pair;
extern int gui_color_num_bg;
/* color functions */
extern int gui_color_get_pair (int num_color);