A little more organization, separating into theme fixes that must be applied to correct rendering, and theme styling changes that may or may not be desired. Still needs config option.
This commit is contained in:
parent
fe64fc6b1d
commit
f03cdd007f
|
@ -415,13 +415,17 @@ class Terminator(Borg):
|
||||||
|
|
||||||
settings=Gtk.Settings().get_default()
|
settings=Gtk.Settings().get_default()
|
||||||
theme_name = settings.get_property('gtk-theme_name')
|
theme_name = settings.get_property('gtk-theme_name')
|
||||||
|
|
||||||
|
theme_part_list = ['terminator.css']
|
||||||
|
if 1: # checkbox_style - needs adding to prefs
|
||||||
|
theme_part_list.append('terminator_styling.css')
|
||||||
|
for theme_part_file in theme_part_list:
|
||||||
for theme_dir in [usr_theme_dir, app_theme_dir]:
|
for theme_dir in [usr_theme_dir, app_theme_dir]:
|
||||||
path_to_theme_specific_css = os.path.join(theme_dir,
|
path_to_theme_specific_css = os.path.join(theme_dir,
|
||||||
theme_name,
|
theme_name,
|
||||||
'gtk-3.0/apps',
|
'gtk-3.0/apps',
|
||||||
'terminator.css')
|
theme_part_file)
|
||||||
if os.path.isfile(path_to_theme_specific_css):
|
if os.path.isfile(path_to_theme_specific_css):
|
||||||
print path_to_theme_specific_css, os.path.isfile(path_to_theme_specific_css)
|
|
||||||
style_provider = Gtk.CssProvider()
|
style_provider = Gtk.CssProvider()
|
||||||
style_provider.load_from_path(path_to_theme_specific_css)
|
style_provider.load_from_path(path_to_theme_specific_css)
|
||||||
self.style_providers.append(style_provider)
|
self.style_providers.append(style_provider)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
GtkPaned {
|
/* Fixes oversized hover area preventing selecting characters. */
|
||||||
|
.terminator-terminal-window GtkPaned {
|
||||||
margin: 0 0 0 0;
|
margin: 0 0 0 0;
|
||||||
padding: 0 0 0 0; }
|
padding: 0 0 0 0; }
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* Raleigh is so old, it doesn't use the correct public colours */
|
||||||
.terminator-terminal-window {
|
.terminator-terminal-window {
|
||||||
background-color: alpha(@bg_color,0); }
|
background-color: alpha(@bg_color,0); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue