add pseudo-transparency support
This commit is contained in:
parent
1c3a31626e
commit
b036852674
11
termite.cc
11
termite.cc
|
@ -893,9 +893,15 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
|
||||||
g_free(cfgstr);
|
g_free(cfgstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_config_double(config, "options", "transparency", &cfgdouble)) {
|
if (get_config_double(config, "options", "transparency", &cfgdouble) && cfgdouble) {
|
||||||
vte_terminal_set_background_saturation(vte, cfgdouble);
|
vte_terminal_set_background_saturation(vte, cfgdouble);
|
||||||
vte_terminal_set_opacity(vte, (guint16)(0xffff * (1 - cfgdouble)));
|
get_config_boolean(config, "options", "pseudo_transparency", &cfgbool);
|
||||||
|
vte_terminal_set_background_transparent(vte, cfgbool);
|
||||||
|
if (!cfgbool) {
|
||||||
|
vte_terminal_set_opacity(vte, (guint16)(0xffff * (1 - cfgdouble)));
|
||||||
|
} else {
|
||||||
|
vte_terminal_set_opacity(vte, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const long palette_size = 255;
|
const long palette_size = 255;
|
||||||
|
@ -942,6 +948,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
|
||||||
}
|
}
|
||||||
if (get_config_color(config, "background", &color)) {
|
if (get_config_color(config, "background", &color)) {
|
||||||
vte_terminal_set_color_background(vte, &color);
|
vte_terminal_set_color_background(vte, &color);
|
||||||
|
vte_terminal_set_background_tint_color(vte, &color);
|
||||||
}
|
}
|
||||||
if (get_config_color(config, "cursor", &color)) {
|
if (get_config_color(config, "cursor", &color)) {
|
||||||
vte_terminal_set_color_cursor(vte, &color);
|
vte_terminal_set_color_cursor(vte, &color);
|
||||||
|
|
|
@ -18,6 +18,7 @@ search_wrap = true
|
||||||
|
|
||||||
# 0.0: opaque, 1.0: transparent
|
# 0.0: opaque, 1.0: transparent
|
||||||
transparency = 0.0
|
transparency = 0.0
|
||||||
|
pseudo_transparency = false
|
||||||
|
|
||||||
# "system", "on" or "off"
|
# "system", "on" or "off"
|
||||||
cursor_blink = system
|
cursor_blink = system
|
||||||
|
|
Loading…
Reference in New Issue