adium 5478:b3245295daf2: The date separator can now also have fi...
commits at adium.im
commits at adium.im
Thu May 9 16:33:40 UTC 2013
details: http://hg.adium.im/adium/rev/b3245295daf2
revision: 5478:b3245295daf2
branch: adium-1.6
author: Thijs Alkemade <me at thijsalkema.de>
date: Thu May 09 18:31:39 2013 +0200
The date separator can now also have firstFocus, if all yesterday's messages have been seen.
diffs (23 lines):
diff -r 2e78430867fa -r b3245295daf2 Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu May 09 11:14:29 2013 +0200
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu May 09 18:31:39 2013 +0200
@@ -692,8 +692,18 @@
if ([content isKindOfClass:[AIContentContext class]])
[dateSeparator addDisplayClass:@"history"];
- if (content.chat.isGroupChat && content.postProcessContent && adium.interfaceController.activeChat != content.chat)
+ if (content.chat.isGroupChat && content.postProcessContent && adium.interfaceController.activeChat != content.chat) {
[dateSeparator addDisplayClass:@"focus"];
+
+ if (nextMessageFocus) {
+ [self.markedScroller addMarkAt:[self.currentOffsetHeight integerValue] withIdentifier:@"focus" withColor:[NSColor redColor]];
+
+ [dateSeparator addDisplayClass:@"firstFocus"];
+
+ nextMessageFocus = NO;
+ nextMessageRegainedFocus = YES;
+ }
+ }
//Add the date header
[self _appendContent:dateSeparator
More information about the commits
mailing list