cleanup transparency option
This commit is contained in:
parent
f9af7d6051
commit
476a3d9975
6
config.h
6
config.h
|
@ -12,10 +12,8 @@ static const char *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*";
|
|||
static const char *url_command = "/usr/bin/firefox";
|
||||
#endif
|
||||
|
||||
//#define TRANSPARENCY
|
||||
#ifdef TRANSPARENCY
|
||||
static const double transparency_level = 0.2;
|
||||
#endif
|
||||
// 0.0: opaque, 1.0: transparent
|
||||
//#define TRANSPARENCY 0.2
|
||||
|
||||
static const char *font = "Monospace 9";
|
||||
static const long scrollback_lines = 1000;
|
||||
|
|
|
@ -136,8 +136,8 @@ int main(int argc, char **argv) {
|
|||
if (colormap != NULL) {
|
||||
gtk_widget_set_colormap(window, colormap);
|
||||
}
|
||||
vte_terminal_set_background_saturation(VTE_TERMINAL(vte), transparency_level);
|
||||
vte_terminal_set_opacity(VTE_TERMINAL(vte), (guint16)(0xffff * (1 - transparency_level)));
|
||||
vte_terminal_set_background_saturation(VTE_TERMINAL(vte), TRANSPARENCY);
|
||||
vte_terminal_set_opacity(VTE_TERMINAL(vte), (guint16)(0xffff * (1 - TRANSPARENCY)));
|
||||
#endif
|
||||
|
||||
// set colors
|
||||
|
|
Loading…
Reference in New Issue