From 449553ffb0e42656221c3a322d10c14cf86abb6c Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 26 Sep 2013 23:24:27 -0400 Subject: Replace xtext's transparency with full window transparency Xtext's transparency barely worked on windows, didn't work on any modern linux wm and used fake transparency. This uses gtk's built in window opacity that works on more systems and is real transparency. Text area only transparency may return with a transition to cairo, if it works on Windows. --- src/common/cfgfiles.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/common/cfgfiles.c') diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index b7d55e87..93f1d147 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -457,6 +457,7 @@ const struct prefs vars[] = {"gui_tab_utils", P_OFFINT (hex_gui_tab_utils), TYPE_BOOL}, {"gui_throttlemeter", P_OFFINT (hex_gui_throttlemeter), TYPE_INT}, {"gui_topicbar", P_OFFINT (hex_gui_topicbar), TYPE_BOOL}, + {"gui_transparency", P_OFFINT (hex_gui_transparency), TYPE_INT}, {"gui_tray", P_OFFINT (hex_gui_tray), TYPE_BOOL}, {"gui_tray_away", P_OFFINT (hex_gui_tray_away), TYPE_BOOL}, {"gui_tray_blink", P_OFFINT (hex_gui_tray_blink), TYPE_BOOL}, @@ -585,9 +586,6 @@ const struct prefs vars[] = {"text_stripcolor_replay", P_OFFINT (hex_text_stripcolor_replay), TYPE_BOOL}, {"text_stripcolor_topic", P_OFFINT (hex_text_stripcolor_topic), TYPE_BOOL}, {"text_thin_sep", P_OFFINT (hex_text_thin_sep), TYPE_BOOL}, - {"text_tint_blue", P_OFFINT (hex_text_tint_blue), TYPE_INT}, - {"text_tint_green", P_OFFINT (hex_text_tint_green), TYPE_INT}, - {"text_tint_red", P_OFFINT (hex_text_tint_red), TYPE_INT}, {"text_transparent", P_OFFINT (hex_text_transparent), TYPE_BOOL}, {"text_wordwrap", P_OFFINT (hex_text_wordwrap), TYPE_BOOL}, @@ -721,6 +719,7 @@ load_default_config(void) prefs.hex_gui_tab_server = 1; prefs.hex_gui_tab_sort = 1; prefs.hex_gui_topicbar = 1; + prefs.hex_gui_transparency = 255; prefs.hex_gui_tray = 1; prefs.hex_gui_tray_blink = 1; prefs.hex_gui_ulist_count = 1; @@ -789,9 +788,6 @@ load_default_config(void) prefs.hex_notify_timeout = 15; prefs.hex_text_max_indent = 256; prefs.hex_text_max_lines = 500; - prefs.hex_text_tint_blue = 195; - prefs.hex_text_tint_green = 195; - prefs.hex_text_tint_red = 195; prefs.hex_url_grabber_limit = 100; /* 0 means unlimited */ /* STRINGS */ -- cgit 1.4.1