adium 3887:e9dbdc5f687b: Make tooltip contents opaque, only back...

commits at adium.im commits at adium.im
Fri Apr 29 13:30:20 UTC 2011


details:	http://hg.adium.im/adium/rev/e9dbdc5f687b
revision:	3887:e9dbdc5f687b
branch:		(none)
author:		Adrian Godoroja <robotive at me.com>
date:		Fri Apr 29 16:30:06 2011 +0300

Make tooltip contents opaque, only background transparent. Fixes #15050

diffs (22 lines):

diff -r fda8ad101c5b -r e9dbdc5f687b Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m
--- a/Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m	Fri Apr 29 01:45:26 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m	Fri Apr 29 16:30:06 2011 +0300
@@ -23,7 +23,7 @@
 #define TOOLTIP_TITLE_BODY_MARGIN	10.0f
 #define MAX_IMAGE_DIMENSION			96.0f
 
-#define TOOLTIP_OPACITY				0.9f
+#define TOOLTIP_OPACITY				1.0f
 #define TOOLTIP_FADEOUT_INTERVAL	0.025f
 #define TOOLTIP_FADOUT_STEP			0.1f
 
@@ -185,7 +185,8 @@
 													   defer:NO];
 		[tooltipWindow setHidesOnDeactivate:NO];
 		[tooltipWindow setIgnoresMouseEvents:YES];
-		[tooltipWindow setBackgroundColor:[NSColor whiteColor]];
+		[tooltipWindow setOpaque:NO]; 
+		[tooltipWindow setBackgroundColor:[[NSColor controlBackgroundColor] colorWithAlphaComponent:0.97f]];
 		[tooltipWindow setAlphaValue:TOOLTIP_OPACITY];
 		[tooltipWindow setHasShadow:YES];
 




More information about the commits mailing list