[vte/vte-next] Don't set default highlight colour
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next] Don't set default highlight colour
- Date: Sun, 22 May 2011 22:20:16 +0000 (UTC)
commit 1d1b6161093fbe426981fbd85a4770428217755f
Author: Christian Persch <chpe gnome org>
Date: Sun May 22 22:57:40 2011 +0200
Don't set default highlight colour
This makes selection use reverse mode instead of the specified colour.
Also don't set default bold and dim foreground colours, so they're
autogenerated from the background and foreground colours.
src/palette.c | 5 +++++
src/vtepalettecss.h | 3 ---
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/palette.c b/src/palette.c
index d1c99da..ce509a7 100644
--- a/src/palette.c
+++ b/src/palette.c
@@ -102,6 +102,11 @@ write_css_property (const char *property_name,
{
char *color_string;
+ if (strcmp (property_name, "selection-background-color") == 0 ||
+ strcmp (property_name, "bold-foreground-color") == 0 ||
+ strcmp (property_name, "dim-foreground-color") == 0)
+ return;
+
color_string = gdk_rgba_to_string (color);
g_print ("\"-VteTerminal-%s: %s;\\n\"\n",
property_name,
diff --git a/src/vtepalettecss.h b/src/vtepalettecss.h
index 4dba569..e00ca58 100644
--- a/src/vtepalettecss.h
+++ b/src/vtepalettecss.h
@@ -260,7 +260,4 @@
"-VteTerminal-shade-24-shades-24-color: rgb(238,238,238);\n"
"-VteTerminal-foreground-color: rgb(191,191,191);\n"
"-VteTerminal-background-color: rgb(0,0,0);\n"
-"-VteTerminal-bold-foreground-color: rgb(255,255,255);\n"
-"-VteTerminal-dim-foreground-color: rgb(96,96,96);\n"
-"-VteTerminal-selection-background-color: rgb(191,191,191);\n"
"-VteTerminal-cursor-background-color: rgb(191,191,191);\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]