adium-1.4 3480:3fd5458a9fe7: Make tooltip contents opaque, only ...
commits at adium.im
commits at adium.im
Fri Apr 29 13:17:54 UTC 2011
details: http://hg.adium.im/adium-1.4/rev/3fd5458a9fe7
revision: 3480:3fd5458a9fe7
branch: (none)
author: Adrian Godoroja <robotive at me.com>
date: Fri Apr 29 16:17:16 2011 +0300
Make tooltip contents opaque, only background transparent. Refs #15050
diffs (22 lines):
diff -r 494f11d929c4 -r 3fd5458a9fe7 Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m
--- a/Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m Fri Apr 29 01:38:17 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m Fri Apr 29 16:17:16 2011 +0300
@@ -20,7 +20,7 @@
#define TOOLTIP_TITLE_BODY_MARGIN 10.0
#define MAX_IMAGE_DIMENSION 96.0
-#define TOOLTIP_OPACITY 0.9
+#define TOOLTIP_OPACITY 1.0
#define TOOLTIP_FADEOUT_INTERVAL 0.025
#define TOOLTIP_FADOUT_STEP 0.1
@@ -193,7 +193,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