[vte] widget: Disable "bold is bright" by default
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Disable "bold is bright" by default
- Date: Wed, 12 Sep 2018 11:56:12 +0000 (UTC)
commit ab5161c7df07e09bc7796812d6fa6fdf79f61830
Author: Egmont Koblinger <egmont gmail com>
Date: Fri Sep 7 17:50:02 2018 +0200
widget: Disable "bold is bright" by default
https://bugzilla.gnome.org/show_bug.cgi?id=762247#c25
src/app/app.cc | 8 ++++----
src/vte.cc | 2 +-
src/vtegtk.cc | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/app/app.cc b/src/app/app.cc
index b155efa3..d059b6f0 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -42,13 +42,13 @@ public:
gboolean allow_window_ops{false};
gboolean audible_bell{false};
gboolean backdrop{false};
+ gboolean bold_is_bright{false};
gboolean console{false};
gboolean debug{false};
gboolean icon_title{false};
gboolean keep{false};
gboolean no_argb_visual{false};
gboolean no_bold{false};
- gboolean no_bold_is_bright{false};
gboolean no_builtin_dingus{false};
gboolean no_context_menu{false};
gboolean no_double_buffer{false};
@@ -339,6 +339,8 @@ public:
"Set background image extend", "EXTEND" },
{ "blink", 0, 0, G_OPTION_ARG_CALLBACK, (void*)parse_text_blink,
"Text blink mode (never|focused|unfocused|always)", "MODE" },
+ { "bold-is-bright", 'B', 0, G_OPTION_ARG_NONE, &bold_is_bright,
+ "Bold also brightens colors", nullptr },
{ "cell-height-scale", 0, 0, G_OPTION_ARG_DOUBLE, &cell_height_scale,
"Add extra line spacing", "1.0..2.0" },
{ "cell-width-scale", 0, 0, G_OPTION_ARG_DOUBLE, &cell_width_scale,
@@ -383,8 +385,6 @@ public:
"Don't use an ARGB visual", nullptr },
{ "no-bold", 0, 0, G_OPTION_ARG_NONE, &no_bold,
"Disable bold", nullptr },
- { "no-bold-is-bright", 'B', 0, G_OPTION_ARG_NONE, &no_bold_is_bright,
- "Bold does not brightens colors", nullptr },
{ "no-builtin-dingus", 0, 0, G_OPTION_ARG_NONE, &no_builtin_dingus,
"Highlight URLs inside the terminal", nullptr },
{ "no-context-menu", 0, 0, G_OPTION_ARG_NONE, &no_context_menu,
@@ -1873,7 +1873,7 @@ vteapp_window_constructed(GObject *object)
vte_terminal_set_allow_hyperlink(window->terminal, !options.no_hyperlink);
vte_terminal_set_audible_bell(window->terminal, options.audible_bell);
vte_terminal_set_allow_bold(window->terminal, !options.no_bold);
- vte_terminal_set_bold_is_bright(window->terminal, !options.no_bold_is_bright);
+ vte_terminal_set_bold_is_bright(window->terminal, options.bold_is_bright);
vte_terminal_set_cell_height_scale(window->terminal, options.cell_height_scale);
vte_terminal_set_cell_width_scale(window->terminal, options.cell_width_scale);
vte_terminal_set_cjk_ambiguous_width(window->terminal, options.cjk_ambiguous_width);
diff --git a/src/vte.cc b/src/vte.cc
index a6f8b4c3..887382a7 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7996,7 +7996,7 @@ Terminal::Terminal(vte::platform::Widget* w,
m_audible_bell = TRUE;
m_text_blink_mode = VTE_TEXT_BLINK_ALWAYS;
m_allow_bold = TRUE;
- m_bold_is_bright = TRUE;
+ m_bold_is_bright = FALSE;
m_rewrap_on_resize = TRUE;
m_input_enabled = TRUE;
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 89e3d7a8..c4bc7331 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -1364,7 +1364,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
*/
pspecs[PROP_BOLD_IS_BRIGHT] =
g_param_spec_boolean ("bold-is-bright", NULL, NULL,
- TRUE,
+ FALSE,
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY));
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]