adium 3546:686439f896e2: Only display focus indicators within th...
commits at adium.im
commits at adium.im
Wed Nov 17 04:34:05 UTC 2010
details: http://hg.adium.im/adium/rev/686439f896e2
revision: 3546:686439f896e2
author: Evan Schoenberg
date: Tue Nov 16 20:06:55 2010 -0600
Only display focus indicators within the message view itself for group chats. All chats will still have marked scrollers for focus (and mention) purposes.
(transplanted from 49636b57895efed2f7048dae051cab826437c2e5)
diffs (23 lines):
diff -r 6a57340f0207 -r 686439f896e2 Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Tue Nov 16 17:38:33 2010 +0100
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Tue Nov 16 20:06:55 2010 -0600
@@ -703,14 +703,16 @@
if (nextMessageFocus) {
[self.markedScroller addMarkAt:[self.currentOffsetHeight integerValue] withIdentifier:@"focus" withColor:[NSColor redColor]];
- // Add a class for "first content to lose focus"
- [content addDisplayClass:@"firstFocus"];
+ // Add a class for "first content to lose focus" if this is a group chat
+ if (content.chat.isGroupChat)
+ [content addDisplayClass:@"firstFocus"];
nextMessageFocus = NO;
}
// Add a class for "this content received while out of focus"
- [content addDisplayClass:@"focus"];
+ if (content.chat.isGroupChat)
+ [content addDisplayClass:@"focus"];
}
//Add the content object
More information about the commits
mailing list