adium-1.4 2639:a4f812b97eff: Add %senderColor% to the header key...

commits at adium.im commits at adium.im
Sat Oct 24 16:13:19 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/a4f812b97eff
revision:	2639:a4f812b97eff
author:		Zachary West <zacw at adium.im>
date:		Sat Oct 24 12:13:13 2009 -0400

Add %senderColor% to the header keywords. Fixes #12666.

diffs (13 lines):

diff -r 81dc067bf20b -r a4f812b97eff Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 24 12:01:59 2009 -0400
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 24 12:13:13 2009 -0400
@@ -1156,6 +1156,9 @@
 	AIListContact	*listObject = chat.listObject;
 	NSString		*iconPath = nil;
 	
+	[inString replaceKeyword:@"%senderColor%"
+				  withString:[NSColor representedColorForObject:listObject.UID withValidColors:validSenderColors]];
+	
 	if (listObject) {
 		iconPath = [listObject valueForProperty:KEY_WEBKIT_USER_ICON];
 		if (!iconPath) {




More information about the commits mailing list