[vte/wip/html: 20/425] Set colors in HTML if attr->reverse is set
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/html: 20/425] Set colors in HTML if attr->reverse is set
- Date: Fri, 11 Apr 2014 17:49:52 +0000 (UTC)
commit 0beed99e3000e8b60d8f0ab0e47f0f0865268d0c
Author: Joachim Breitner <mail joachim-breitner de>
Date: Thu Jul 21 14:02:01 2011 +0200
Set colors in HTML if attr->reverse is set
src/vte.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 7d4a6f1..54291aa 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6674,7 +6674,7 @@ vte_terminal_cellattr_to_html(VteTerminal *terminal, const VteCellAttr *attr, co
g_string_prepend(string, "<b>");
g_string_append(string, "</b>");
}
- if (attr->fore != VTE_DEF_FG) {
+ if (attr->fore != VTE_DEF_FG || attr->reverse) {
PangoColor *color = &terminal->pvt->palette[fore];
gchar *tag = g_strdup_printf(
"<font color=\"#%02X%02X%02X\">",
@@ -6685,7 +6685,7 @@ vte_terminal_cellattr_to_html(VteTerminal *terminal, const VteCellAttr *attr, co
g_free(tag);
g_string_append(string, "</font>");
}
- if (attr->back != VTE_DEF_BG) {
+ if (attr->back != VTE_DEF_BG || attr->reverse) {
PangoColor *color = &terminal->pvt->palette[back];
gchar *tag = g_strdup_printf(
"<span style=\"background-color:#%02X%02X%02X\">",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]