feat(terminal): set bold_is_bright for VTE when supported (#38)

This commit is contained in:
Jakub Vaněk 2020-04-25 20:23:36 +02:00
parent 7ea105492f
commit 78e82464c3
No known key found for this signature in database
GPG Key ID: CCDE818F3F894D36
1 changed files with 3 additions and 0 deletions

View File

@ -701,6 +701,9 @@ class Terminal(Gtk.VBox):
except:
pass
self.vte.set_allow_bold(self.config['allow_bold'])
if hasattr(self.vte, 'set_bold_is_bright'):
self.vte.set_bold_is_bright(self.config['bold_is_bright'])
if self.config['use_theme_colors']:
self.fgcolor_active = self.vte.get_style_context().get_color(Gtk.StateType.NORMAL) # VERIFY FOR GTK3: do these really take the theme colors?
self.bgcolor = self.vte.get_style_context().get_background_color(Gtk.StateType.NORMAL)